Moved some stuff to examples/
This commit is contained in:
parent
44a4699fff
commit
ef3faed189
4 changed files with 20 additions and 0 deletions
18
examples/xboxdrv-dualstrike-mouse
Executable file
18
examples/xboxdrv-dualstrike-mouse
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
xboxdrv \
|
||||
--evdev /dev/input/event9 \
|
||||
--evdev-absmap ABS_X=X1,ABS_Y=y1 \
|
||||
--evdev-absmap ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y \
|
||||
--evdev-keymap BTN_BASE=LB,BTN_BASE2=RB \
|
||||
--evdev-keymap BTN_BASE3=guide,BTN_TOP2=start,BTN_PINKIE=back \
|
||||
--evdev-keymap BTN_THUMB=x,BTN_TOP=a,BTN_THUMB2=b,BTN_TRIGGER=y \
|
||||
\
|
||||
--ui-clear \
|
||||
--ui-buttonmap rb=BTN_LEFT,lb=BTN_RIGHT,start=KEY_ESC,back=KEY_F1 \
|
||||
--ui-buttonmap a=KEY_SPACE \
|
||||
--ui-axismap X1=REL_X:20,Y1=REL_Y:20 \
|
||||
--ui-axismap DPAD_X=KEY_A:KEY_D:1,DPAD_Y=KEY_W:KEY_S:1 \
|
||||
-s "$@"
|
||||
|
||||
# EOF #
|
|
@ -143,6 +143,8 @@ class DeviceManager:
|
|||
return None
|
||||
|
||||
if __name__ == '__main__':
|
||||
print "Warning: xboxdrv-daemon is obsolete, it will be removed in future releases, use 'xboxdrv --daemon' instead."
|
||||
|
||||
# parse options
|
||||
parser = OptionParser(usage = "%prog [OPTIONS] -- [XBOXDRV ARGS]",
|
||||
version = "0.4.14",
|
||||
|
|
Loading…
Reference in a new issue