tsh
Active Member
By reading the source code, and making some guesses. Also guessing that others might have googled for anything simple (i.e. in the user domain of linux). My assumption is that if the keyboard is to generate mouse events, the gpio_keys driver needs to be extended to advertise to the kernel that it includes a mouse device. It's probably not difficult, but requires more than just merging the code from these drivers:Mr Loon said:tsh said:OK, when you find out anything useful, make a note here:
http://pandorawiki.org/Keyboard_remapping
(This contains nothing new yet, but it's a common question and i hate trawling the forum to find something I think I saw in the past)
Nice one tsh, really like the idea of having this as a wiki page.
Just wondering where you heard that 'currently only the nubs (or an external mouse) will generate mouse button events, and this is not trivial to change (for a user).'
Not disputing the fact but if there is a reason attached to that statement it might help with the quest for the remappable mouse button.
http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blob;f=drivers/input/misc/vsense.c (nubs)
http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blob;f=drivers/input/keyboard/gpio_keys.c (keyboard)
I've not spent any time reading these, or looking into the underlying kernal stuff they hook into, I'm more interested today in playing with the charging stuff - but I can try and help with some pointers.
Last edited by a moderator: