Index: joy.h
===================================================================
--- joy.h	(revision 0)
+++ joy.h	(revision 1)
@@ -0,0 +1,62 @@
+#ifndef _JOY_H
+#define _JOY_H
+/*=
+Joysticks, pads and force feedback
+3100
+**/
+
+// Introduction
+/**
+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.
+
+Interesting variables:
+%%(c)
+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".
+**/
+
+#define JS_EVENT_BUTTON         0x01    /* button pressed/released */
+#define JS_EVENT_AXIS           0x02    /* joystick moved */
+#define JS_EVENT_INIT           0x80    /* initial state of device */
+extern char number_of_axes, number_of_buttons;
+extern int raydium_joy_event_handle;
+#ifndef WIN32
+struct ff_effect effect_tremble;
+#endif
+extern struct ff_effect effect_tremble;
+extern char effect_tremble_state;
+extern clock_t last_event;
+extern void raydium_joy_init_vars (void);
+extern void raydium_joy_key_emul (void);
+/**
+Emulate keyboard (directional pad) with joy, if any.
+**/
+
+#ifndef WIN32
+extern int raydium_joy_process_event (struct js_event e);
+#endif
+extern void raydium_joy_callback (void);
+extern void raydium_joy_ff_autocenter (int perc);
+/**
+Set Force Feedback autocenter factor.
+**/
+
+extern void raydium_joy_init (void);
+extern void raydium_joy_close (void);
+extern void raydium_joy_ff (void);
+extern void raydium_joy_ff_tremble_set (GLfloat period, GLfloat force);
+/**
+Send tremble effect to Force Feedback device for a determined period, 
+at a particular force. (no units yet).
+**/
+
+#endif