Imagine++
Public Attributes | List of all members
Imagine::Event Struct Reference

Event info. More...

#include "Imagine/Graphics.h"

Public Attributes

int button
 Mouse button (1,2,3) that triggered the event, if any.
 
int key
 Key code that triggered the event, if any (only for types EVT_KEY_ON and EVT_KEY_OFF). More...
 
IntPoint2 pix
 Mouse position (only for EVT_BUT_ON, EVT_BUT_OFF and EVT_MOTION).
 
EventState state
 Keyboard state (bitfield) just before the event occured.
 
int subWin
 SubWindow where the event occurred.
 
EventType type
 Event type.
 
Window win
 Window where the event occurred.
 

Detailed Description

All the info about a keyboard or mouse event... See this page for usage: Handling events

Examples:
Graphics/test/example.cpp, and Graphics/test/test.cpp.

Member Data Documentation

◆ key

int Imagine::Event::key

The documentation for this struct was generated from the following file: