Added love.event.quit() and love.quit() callback

This commit is contained in:
rxi
2016-10-16 14:01:05 +01:00
parent 719ea5e56a
commit 37217a242f
4 changed files with 42 additions and 13 deletions

View File

@@ -10,6 +10,7 @@
enum {
EVENT_NULL,
EVENT_QUIT,
EVENT_KEYBOARD_PRESSED,
EVENT_KEYBOARD_RELEASED,
EVENT_KEYBOARD_TEXTINPUT,
@@ -21,6 +22,11 @@ enum {
typedef union {
int type;
struct {
int type;
int status;
} quit;
struct {
int type;
int x, y;