Difference between revisions of "Joystick"

From ArmadeusWiki
Jump to: navigation, search
(Introduction)
(Introduction)
Line 18: Line 18:
  
 
<pre class="apf">
 
<pre class="apf">
 +
cd /dev
 +
rm js*
 +
mkdir input
 +
mknod input/js0 c 13 0
 +
mknod input/js1 c 13 1
 +
mknod input/js2 c 13 2
 +
mknod input/js3 c 13 3
 +
ln -s input/js0 js0
 +
ln -s input/js1 js1
 +
ln -s input/js2 js2
 +
ln -s input/js3 js3
 
</pre>
 
</pre>
 +
 +
== Test the joystick ==
 +
 +
== List of joystick tested ==
 +
 +
=== Austria microsystems AS5011 joystick ===
  
 
== Links ==
 
== Links ==

Revision as of 16:54, 7 July 2010

Introduction

Joystick can be a good device to play some games or to use graphical interface. Linux has an interface for it named joydev, to use it select joydev in linux configuration :

$ make linux26-menuconfig

then select in menu:

Device Drivers  --->
    Input device support  --->
            <*>   Joystick interface

To use it on the target, node has to be made :

cd /dev
rm js*
mkdir input
mknod input/js0 c 13 0
mknod input/js1 c 13 1
mknod input/js2 c 13 2
mknod input/js3 c 13 3
ln -s input/js0 js0
ln -s input/js1 js1
ln -s input/js2 js2
ln -s input/js3 js3

Test the joystick

List of joystick tested

Austria microsystems AS5011 joystick

Links

  • Linux kernel code documentation