Rev 130 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 130 | Rev 140 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #if !defined(JOYDEV_HANDLER_H) |
|
- | 2 | #define JOYDEV_HANDLER_H |
|
- | 3 | ||
1 | #include <linux/joystick.h> |
4 | #include <linux/joystick.h> |
- | 5 | #include <stdio.h> |
|
- | 6 | #include <stdlib.h> |
|
- | 7 | #include <fcntl.h> |
|
- | 8 | #include "config.h" |
|
- | 9 | ||
- | 10 | extern int *axis; |
|
- | 11 | extern char *button; |
|
- | 12 | ||
- | 13 | ||
- | 14 | ||
- | 15 | int joy_input_fd; |
|
- | 16 | int num_of_axis,num_of_buttons; |
|
- | 17 | ||
- | 18 | char *button_trigger; |
|
- | 19 | char name_of_joystick[80]; |
|
- | 20 | ||
- | 21 | ||
- | 22 | int connect_joy(); |
|
- | 23 | ||
- | 24 | #endif |