Dies ist eine alte Version des Dokuments!
jstest /dev/input/js0
(Paket joystick)
Options:
For SVGALIB and similar programs that put the keyboard in raw mode. Sends scancodes. May be compiled out
of your copy of joy2key.
Send ascii characters. May be compiled out of your copy of joy2key.
axisN, that is, the X axis is axis0, then the Y axis (axis1), then if you have a joystick hat that may be
axis 2 and 3, etc. To figure out which axis is which, use the jstest program that comes with the joystick driver.
Similar to -arrows, but for buttons. Goes from button0 … buttonN, specifying key to send for each but-
ton on joystick. Use the jstest program to determine the numbering for each button.
Specifies low/high thresholds to use (i.e. at what point moving the stick or pressing the gamepad triggers
an event) in pairs, for each joystick axis.
Turns on and optionally specifies autorepeat frequency, i.e. the number of times per second a button
which is held down will be repeated.
Controls sensitivity when manually calibrating.
Sets the rc file to look in.
Reads in a config in an rc file.
START xkobo xkobo -X -buttons Shift_L s -axis Left Right Up Down START ines -X -buttons z a Tab Return -axis Left Right Up Down START quake2 # set the following keybindings in quake2: # bind kp_up +forward # bind kp_down +back # bind kp_leftarrow +left # bind kp_rightarrow +right # bind ctrl +attack # bind shift +movedown # bind alt +strafe # bind space +moveup # bind / weapnext # bind ins +klook # * The same notes for playing sdoom (below) apply to console # quake as well. -rawconsole -axis 75 77 72 80 -buttons 97 42 56 57 53 110 START doom # Since sdoom is a console application, you either # A] must run joy2key on the same virtual console as sdoom # (try joy2key -config doom &) # (don't forget to kill joy2key when you are done, or # moving the joystick will continue to send keys to # the console) # or # B] run joy2key as root (so it can send keypresses to virtual # consoles it doesn't own) # (again, remeber to kill it when you are done) # send keyup codes -rawconsole # Control (fire) : LShift (run) : Alt (strafe) : Space (open/push) -buttons 97 42 56 57 # Left Arrow : Right Arrow : Up Arrow : Down Arrow -axis 75 77 72 80 START X11Amp -X X11Amp -axis z b c c -buttons z b c c START snes9x -X -axis Left Right Up Down -buttons s x d c a z Return space
ShanWan SJ@JX Gamepad
Bus 001 Device 007: ID 20bc:5500 ShenZhen ShanWan Technology Co., Ltd. Frostbite controller
Macro commands and SOCD function. More notes on extended functionality.
1. Press and hold the Macro button until the Macro LED flashes to start editing the Macro command.
2. Enter the key combination sequentially.
(1) Available buttons: A, B, X, Y, L1, L2, L3, R1, R2, R3, SE, ST.
(2) Available joysticks: up, up-left, left, down-left, down, down-right, right, up-right.
(3) The key value is output at a fixed rate, and the time interval for inputting the key value is not recorded.
3. Short press the Macro button, the LED stops flashing, and the recording is successful.
4. Press the Macro button to sequentially output the recorded key combination.
5. For example:
(1)Press and hold the Macro 1 button until the light flashes.
(2)Press in sequence: left, down-left, down, A, B.
(3)Short press the Macro 1 button, the indicator light stops flashing.
(4)Then, short press the Macro 1 button, the encoding board will output left, down-left, down, A, B in sequence.
6. SOCD (Simultaneous Opposing Cardinal Directions):
Preset 5 different SOCD modes.
Select the mode you want, hold down the X, A, B and Y button, then press the select button once.
The LED blinks a few times and then turns off, and the setting is successful.
(1) Button X + Select:
←+→=→, ↓+↑=↑, ←+↓+→=↓.
(2) Button A + Select (default. Applies to most situations.):
←+→=None, ↓+↑=None, ←+↓+→=↓.
(3) Button B + Select:
←+→=→, ↓+↑=↑, ←+↓+→=↘.
(4) Button Y + Select:
←+→=None, ↓+↑=↑, ←+↓+→=↓.
(5) Button L1 + Select:
←+→=←, ↓+↑=↑, ←+↓+→=↓.