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 file?

Anyone else figured this out yet?

Question information

English Edit question
Pystromo Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best Raumkraut (raumkraut) said :

I think what you're looking for is the section of the included 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 "+"
## Remap the negative wheel motion to "-"

The ">" and "<" instruct it to match only values greater than zero and less than zero, respectively. 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 :

Thanks Raumkraut, that solved my question.