Files
lime/project/include/ui/GamepadEvent.h
2015-10-05 18:48:36 -07:00

45 lines
546 B
C++

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