uinput-mapper/configs/sidewinder.py

22 lines
430 B
Python
Raw Normal View History

2013-05-24 08:17:12 -04:00
from uinputmapper.cinput import *
2013-05-19 07:07:59 -04:00
"""
Configuration for a simple Microsoft SideWinter Game Pad Pro USB version 1.0
... as ABS input pointer device
"""
config = {
(0, EV_KEY): {
BTN_A: {
'type' : (0, EV_KEY),
'code' : BTN_MOUSE,
'value' : lambda x: 0 if x == 0 else 1
}
}
}
def config_merge(c):
del c[(0, EV_KEY)]
c.update(config)