Skip to content

Commit

Permalink
COMMON: Improve spacing between members in the event structs
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Nov 19, 2017
1 parent bc5ac64 commit acf87ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/events.h
Expand Up @@ -90,24 +90,29 @@ enum EventType {
};

typedef uint32 CustomEventType;

/**
* Data structure for an event. A pointer to an instance of Event
* can be passed to pollEvent.
*/
struct Event {

/** The type of the event. */
EventType type;

/**
* True if this is a key down repeat event.
*
* Only valid for EVENT_KEYDOWN events.
*/
bool kbdRepeat;

/**
* Keyboard data; only valid for keyboard events (EVENT_KEYDOWN and
* EVENT_KEYUP). For all other event types, content is undefined.
*/
KeyState kbd;

/**
* The mouse coordinates, in virtual screen coordinates. Only valid
* for mouse events.
Expand Down Expand Up @@ -385,6 +390,7 @@ class EventManager : NonCopyable {
* @note called after graphics system has been set up
*/
virtual void init() {}

/**
* Get the next event in the event queue.
* @param event point to an Event struct, which will be filled with the event data.
Expand Down

0 comments on commit acf87ad

Please sign in to comment.