[atreus] Re: Mouse keys -- yes, it works!

  • From: Phil Hagelberg <phil@xxxxxxxxxx>
  • To: atreus@xxxxxxxxxxxxx
  • Date: Mon, 25 Apr 2016 20:53:08 +0700

Mauro Lopes <maurolopes@xxxxxxxxx> writes:

For reasons that I still don't understand, you can't just use mouse
keycodes directly in the keymap. But it works perfectly (all mouse
commands) if you create an action and point to it in the keymap!

I think this is because the keymap is normally array of 8-bit numbers,
so there isn't enough room there for all the possible actions you could
put in the actions array. I have bumped it up in my fork to a 16-bit
number, but 4 of those bits are dedicated to modifiers now, so mouse
keys still need to be in their own action.

I will try to get this better-documented; thanks!

-Phil

Attachment: signature.asc
Description: PGP signature

Other related posts: