Files
lime/project/include/ui/JoystickEvent.h
2023-05-11 20:22:27 -04:00

48 lines
628 B
C++

#ifndef LIME_UI_JOYSTICK_EVENT_H
#define LIME_UI_JOYSTICK_EVENT_H
#include <system/CFFI.h>
#include <system/ValuePointer.h>
namespace lime {
enum JoystickEventType {
JOYSTICK_AXIS_MOVE,
JOYSTICK_HAT_MOVE,
// JOYSTICK_TRACKBALL_MOVE,
JOYSTICK_BUTTON_DOWN,
JOYSTICK_BUTTON_UP,
JOYSTICK_CONNECT,
JOYSTICK_DISCONNECT
};
struct JoystickEvent {
hl_type* t;
int id;
int index;
JoystickEventType type;
int eventValue;
double x;
double y;
static ValuePointer* callback;
static ValuePointer* eventObject;
JoystickEvent ();
static void Dispatch (JoystickEvent* event);
};
}
#endif