Files
lime/project/include/ui/TouchEvent.h
2015-08-19 16:30:36 -07:00

47 lines
533 B
C++

#ifndef LIME_UI_TOUCH_EVENT_H
#define LIME_UI_TOUCH_EVENT_H
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
enum TouchEventType {
TOUCH_START,
TOUCH_END,
TOUCH_MOVE
};
class TouchEvent {
public:
static AutoGCRoot* callback;
static AutoGCRoot* eventObject;
TouchEvent ();
static void Dispatch (TouchEvent* event);
uint32_t device;
float dx;
float dy;
uint32_t id;
float pressure;
TouchEventType type;
float x;
float y;
};
}
#endif