File: absolutemouse.xboxdrv

package info (click to toggle)
xboxdrv 0.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,252 kB
  • sloc: cpp: 19,297; xml: 3,202; ansic: 507; python: 483; sh: 89; makefile: 34; ruby: 19
file content (53 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Absolute Cursor Example
# =======================
#
# This example configures the controller to act as mouse, but instead
# of moving around the cursor via relative motion, the sticks position
# maps directly to screen coordinates, this is accomplished by the
# combination of extra-devices=false and having ABS_X, ABS_Y and
# BTN_LEFT in the configuration.
#
# For regular Xbox360 controllers this configuration isn't all that
# useful in practice, but for some controllers like the Sidewinder
# Dualstrike it can be helpful.

[xboxdrv]
dpad-as-button=true

# an absolute pointing device must have at least ABS_X, ABS_Y and
# BTN_LEFT in a single device, as those would be sorted into separate
# devices by the auto device creator, we have to disabled it to get
# them all in a single one
extra-devices=false

[modifier]
square = X1:Y1

[ui-axismap]
X1 = ABS_X
Y1 = ABS_Y
X2^dead:4000 = REL_HWHEEL:5:100
Y2^invert^dead:4000 = REL_WHEEL:5:100
lt = void
rt = void

[ui-buttonmap]
a  = BTN_LEFT
b  = BTN_RIGHT
x  = BTN_MIDDLE
y  = KEY_ENTER
rb = KEY_PAGEDOWN
lb = KEY_PAGEUP

[ui-buttonmap]
dl = KEY_LEFT
dr = KEY_RIGHT
du = KEY_UP
dd = KEY_DOWN

[ui-buttonmap]
start = KEY_FORWARD
back  = KEY_BACK
guide = KEY_ESC

# EOF #