Files
lime/project/include/ui/GamepadEvent.h
2018-07-18 17:32:51 -07:00

45 lines
556 B
C++

#ifndef LIME_UI_GAMEPAD_EVENT_H
#define LIME_UI_GAMEPAD_EVENT_H
#include <system/CFFI.h>
#include <system/ValuePointer.h>
namespace lime {
enum GamepadEventType {
GAMEPAD_AXIS_MOVE,
GAMEPAD_BUTTON_DOWN,
GAMEPAD_BUTTON_UP,
GAMEPAD_CONNECT,
GAMEPAD_DISCONNECT
};
struct GamepadEvent {
hl_type* t;
int axis;
int button;
int id;
GamepadEventType type;
double axisValue;
static ValuePointer* callback;
static ValuePointer* eventObject;
GamepadEvent ();
static void Dispatch (GamepadEvent* event);
};
}
#endif