Joystick

From ArmadeusWiki
Revision as of 16:00, 7 July 2010 by FabienM (Talk | contribs)

Jump to: navigation, search
Page under construction... 

Construction.png Informations on this page are not guaranteed !!

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

Two programs named jstest and jscal wrote by Vojtech Pavlik can be use to test and calibrate the joystick. To use it select joysticktest package in buildroot :

$ make menuconfig

List of joysticks tested

Austria microsystems AS5011 joystick

Links

  • Linux kernel code documentation