Ceci est une version archivée de
ApiJoyIntro à 2005-01-15 19:54:10.
31.1 Introduction to joy.c
Raydium supports Joysticks, joypads, steering wheels, force feedback devices, keyboard emulation, for Linux only.
Since API could change during
Win32 integration, there is no particular documentation about this subject.
char raydium_joy_button[RAYDIUM_BUTTONS_MAX_BUTTONS];
GLfloat raydium_joy_x;
GLfloat raydium_joy_y;
GLfloat raydium_joy_z;
int raydium_joy;
Buttons are booleans, joy x,y and z are -1 <= (x,y,z) <= 1 and 0 means "center".