gamepad.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 03 Oct 2015 18:29:10 +0300
changeset 1765 2132765de2f4
parent 416 b67ca6618e75
permissions -rw-r--r--
Cellular automaton.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
416
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
-*- mode: outline; coding: utf-8 -*-
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* Linux.
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
  $ sudo apt-get install joystick
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
  $ sudo apt-get install jscalibrator
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
  $ sudo chmod 666 /dev/input/js0
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
  $ modprobe joydev
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
  $ jscal /dev/input/js0
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
  $ jstest /dev/input/js0
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
* How play game with gamepad if thay not support gamepad?
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
  http://en.wikipedia.org/wiki/Xpadder
b67ca6618e75 About gamepad.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
                non-free, Windows only