Move */arch/include/joy.h -> common/include/joy.h

This commit is contained in:
Kp 2013-03-03 01:03:33 +00:00
parent 896865c4c4
commit 10260197f6
2 changed files with 0 additions and 33 deletions

View file

@ -1,33 +0,0 @@
/*
*
* Header for joystick functions
*
*/
#ifndef _JOY_H
#define _JOY_H
#include "pstypes.h"
#include "fix.h"
#include <SDL/SDL.h>
struct d_event;
#define MAX_JOYSTICKS 8
#define MAX_AXES_PER_JOYSTICK 128
#define MAX_BUTTONS_PER_JOYSTICK 128
#define MAX_HATS_PER_JOYSTICK 4
#define JOY_MAX_AXES (MAX_AXES_PER_JOYSTICK * MAX_JOYSTICKS)
#define JOY_MAX_BUTTONS (MAX_BUTTONS_PER_JOYSTICK * MAX_JOYSTICKS)
extern int joy_num_axes; // set to Joystick.n_axes. solve different?
extern void joy_init();
extern void joy_close();
extern void event_joystick_get_axis(struct d_event *event, int *axis, int *value);
extern void joy_flush();
extern int event_joystick_get_button(struct d_event *event);
extern void joy_button_handler(SDL_JoyButtonEvent *jbe);
extern void joy_hat_handler(SDL_JoyHatEvent *jhe);
extern int joy_axis_handler(SDL_JoyAxisEvent *jae);
#endif // _JOY_H