Mapping the REL_WHEEL Values

Asked by parx86

Excellent work getting the N52 to work under Linux! I've almost got mine all figured out...

Except, I can't seem to figure out a way to map each direction of the scroll wheel to different keys, is this possible? It says the wheel is mapped to REL_WHEEL, 1 and REL_WHEEL, -1 as values, but I can't figure out how to use these values in the default.map file?

Anyone else figured this out yet?

Question information

Language:
English Edit question
Status:
Solved
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Solved by:
Raumkraut
Solved:
Last query:
Last reply:
Revision history for this message
Best Raumkraut (raumkraut) said :
#1

I think what you're looking for is the section of the included test.map at lines 127-132:

# For relative actions (such as wheels) you need to specify the direction of
# motion to match using ">" (positive/up/right) and "<" (negative/down/left)
## Remap the positive wheel motion to "+"
REL_WHEEL>=KEY_LEFTSHIFT+KEY_EQUAL
## Remap the negative wheel motion to "-"
REL_WHEEL<=KEY_MINUS

The ">" and "<" instruct it to match only values greater than zero and less than zero, respectively. test.map goes more into how you can remap based on input values, starting from line #165, but you shouldn't need any more than the above for mousewheels (which AFAIK only ever go to +/- 1).

Revision history for this message
parx86 (parx86) said :
#2

Thanks Raumkraut, that solved my question.