Add window.id, add native EXIT event, filter window-based events and send to correct window instance

This commit is contained in:
Joshua Granick
2015-08-19 12:36:30 -07:00
parent 8a9db7a36a
commit 8768d6114f
25 changed files with 337 additions and 254 deletions

View File

@@ -3,6 +3,7 @@
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
@@ -33,6 +34,7 @@ namespace lime {
double movementX;
double movementY;
MouseEventType type;
uint32_t windowID;
double x;
double y;

View File

@@ -3,6 +3,7 @@
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
@@ -31,6 +32,7 @@ namespace lime {
long start;
char text[32];
TextEventType type;
uint32_t windowID;
};

View File

@@ -3,6 +3,7 @@
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
@@ -30,6 +31,7 @@ namespace lime {
int id;
TouchEventType type;
uint32_t windowID;
double x;
double y;

View File

@@ -8,6 +8,7 @@
#include <app/Application.h>
#include <graphics/ImageBuffer.h>
#include <stdint.h>
namespace lime {
@@ -21,6 +22,7 @@ namespace lime {
virtual void Close () = 0;
virtual bool GetEnableTextEvents () = 0;
virtual int GetHeight () = 0;
virtual uint32_t GetID () = 0;
virtual int GetWidth () = 0;
virtual int GetX () = 0;
virtual int GetY () = 0;

View File

@@ -3,6 +3,7 @@
#include <hx/CFFI.h>
#include <stdint.h>
namespace lime {
@@ -39,6 +40,7 @@ namespace lime {
int height;
WindowEventType type;
int width;
uint32_t windowID;
int x;
int y;