8#ifndef GWINDOWEVENTS_H_
9#define GWINDOWEVENTS_H_
73 cursormode(cursormode) {}
75 float getX()
const {
return mousex; }
76 float getY()
const {
return mousey; }
136 : width(width), height(height) {}
150 : width(width), height(height), scalex(scalex), scaley(scaley) {}
161 float scalex, scaley;
199 : joystickid(joystickId), isgamepad(isgamepad) {}
214 : joystickid(joystickId) {}
254 gTouchEvent(
int inputCount,
TouchInput* inputs,
int actionIndex,
ActionType action) : inputs(inputs), inputcount(inputCount), action(action), actionindex(actionIndex) {}
Definition gWindowEvents.h:290
gAppPauseEvent()
Definition gWindowEvents.h:292
Definition gWindowEvents.h:299
gAppResumeEvent()
Definition gWindowEvents.h:301
Definition gWindowEvents.h:33
unsigned int getCharacter() const
Definition gWindowEvents.h:38
gCharTypedEvent(const unsigned int keycode)
Definition gWindowEvents.h:35
Definition gWindowEvents.h:278
gDeviceOrientationChangedEvent(DeviceOrientation orientation)
Definition gWindowEvents.h:280
DeviceOrientation getOrientation() const
Definition gWindowEvents.h:282
Definition gWindowEvents.h:196
bool isGamepad() const
Definition gWindowEvents.h:202
int getJoystickId() const
Definition gWindowEvents.h:201
gJoystickConnectEvent(int joystickId, bool isgamepad)
Definition gWindowEvents.h:198
Definition gWindowEvents.h:211
int getJoystickId() const
Definition gWindowEvents.h:216
gJoystickDisconnectEvent(int joystickId)
Definition gWindowEvents.h:213
gKeyEvent(const int keycode)
Definition gWindowEvents.h:27
int getKeyCode() const
Definition gWindowEvents.h:23
int keycode
Definition gWindowEvents.h:30
Definition gWindowEvents.h:46
bool isRepeat() const
Definition gWindowEvents.h:52
gKeyPressedEvent(const int keycode, bool isrepeat=false)
Definition gWindowEvents.h:48
Definition gWindowEvents.h:59
gKeyReleasedEvent(const int keycode)
Definition gWindowEvents.h:61
Definition gWindowEvents.h:68
gMouseMovedEvent(float x, float y, gCursorMode cursormode)
Definition gWindowEvents.h:70
gCursorMode getCursorMode() const
Definition gWindowEvents.h:77
float getX() const
Definition gWindowEvents.h:75
float getY() const
Definition gWindowEvents.h:76
Definition gWindowEvents.h:252
gTouchEvent(int inputCount, TouchInput *inputs, int actionIndex, ActionType action)
Definition gWindowEvents.h:254
int getActionIndex() const
Definition gWindowEvents.h:258
int getInputCount() const
Definition gWindowEvents.h:256
ActionType getAction() const
Definition gWindowEvents.h:259
TouchInput * getInputs() const
Definition gWindowEvents.h:257
Definition gWindowEvents.h:164
gWindowFocusEvent()
Definition gWindowEvents.h:166
Definition gWindowEvents.h:172
gWindowLoseFocusEvent()
Definition gWindowEvents.h:174
Definition gWindowEvents.h:180
gWindowMouseEnterEvent()
Definition gWindowEvents.h:182
Definition gWindowEvents.h:188
gWindowMouseExitEvent()
Definition gWindowEvents.h:190
Definition gWindowEvents.h:133
int getHeight() const
Definition gWindowEvents.h:139
int getWidth() const
Definition gWindowEvents.h:138
gWindowResizeEvent(int width, int height)
Definition gWindowEvents.h:135
Definition gWindowEvents.h:147
int getHeight() const
Definition gWindowEvents.h:153
gWindowScaleChangedEvent(int width, int height, float scalex, float scaley)
Definition gWindowEvents.h:149
float getScaleY() const
Definition gWindowEvents.h:155
int getWidth() const
Definition gWindowEvents.h:152
float getScaleX() const
Definition gWindowEvents.h:154
#define G_EVENT_CLASS_CATEGORY(category)
Definition gEvent.h:91
@ EVENTCATEGORY_KEYBOARD
Definition gEvent.h:17
@ EVENTCATEGORY_JOYSTICK
Definition gEvent.h:20
@ EVENTCATEGORY_TOUCHSCREEN
Definition gEvent.h:21
@ EVENTCATEGORY_APP
Definition gEvent.h:15
@ EVENTCATEGORY_MOUSE
Definition gEvent.h:18
@ EVENTCATEGORY_MOUSE_BUTTON
Definition gEvent.h:19
@ EVENTCATEGORY_INPUT
Definition gEvent.h:16
#define G_EVENT_CLASS_TYPE(type)
Definition gEvent.h:86
ActionType
Definition gWindowEvents.h:231
@ ACTIONTYPE_MOVE
Definition gWindowEvents.h:234
@ ACTIONTYPE_HOVER_MOVE
Definition gWindowEvents.h:239
@ ACTIONTYPE_POINTER_UP
Definition gWindowEvents.h:238
@ ACTIONTYPE_HOVER_ENTER
Definition gWindowEvents.h:241
@ ACTIONTYPE_CANCEL
Definition gWindowEvents.h:235
@ ACTIONTYPE_DOWN
Definition gWindowEvents.h:232
@ ACTIONTYPE_UP
Definition gWindowEvents.h:233
@ ACTIONTYPE_SCROLL
Definition gWindowEvents.h:240
@ ACTIONTYPE_OUTSIDE
Definition gWindowEvents.h:236
@ ACTIONTYPE_HOVER_EXIT
Definition gWindowEvents.h:242
@ ACTIONTYPE_POINTER_DOWN
Definition gWindowEvents.h:237
gCursorMode
Definition gWindowEvents.h:14
@ CURSORMODE_NORMAL
Definition gWindowEvents.h:15
@ CURSORMODE_HIDDEN
Definition gWindowEvents.h:16
@ CURSORMODE_DISABLED
Definition gWindowEvents.h:17
@ CURSORMODE_RELATIVE
Definition gWindowEvents.h:18
InputType
Definition gWindowEvents.h:224
@ INPUTTYPE_MOUSE
Definition gWindowEvents.h:228
@ INPUTTYPE_FINGER
Definition gWindowEvents.h:226
@ INPUTTYPE_STYLUS
Definition gWindowEvents.h:227
@ INPUTTYPE_UNKNOWN
Definition gWindowEvents.h:225
DeviceOrientation
Definition gWindowEvents.h:270
@ DEVICEORIENTATION_REVERSE_LANDSCAPE
Definition gWindowEvents.h:274
@ DEVICEORIENTATION_REVERSE_PORTRAIT
Definition gWindowEvents.h:275
@ DEVICEORIENTATION_UNSPECIFIED
Definition gWindowEvents.h:271
@ DEVICEORIENTATION_LANDSCAPE
Definition gWindowEvents.h:272
@ DEVICEORIENTATION_PORTRAIT
Definition gWindowEvents.h:273