Add window.id, add native EXIT event, filter window-based events and send to correct window instance
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user