| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef EVENT_H
- #define EVENT_H
- // add this include because this is only common file between everything that uses Input fucntion
- #include <OIS.h>
- enum EventType
- {
- ET_NULL = 0,
- ET_KEY_PRESS,
- ET_KEY_REPEAT,
- ET_KEY_IMPULSE,
- ET_KEY_RELEASE,
- ET_MOUSE_PRESS,
- ET_MOUSE_RELEASE,
- ET_MOUSE_MOVE,
- ET_MOUSE_SCROLL
- };
- struct Event
- {
- Event():
- type( ET_NULL ),
- param1( 0 ),
- param2( 0 )
- {
- };
- Event( EventType n ):
- type( n ),
- param1( 0 ),
- param2( 0 )
- {
- };
- Event( EventType n, float p1, float p2 ):
- type( n ),
- param1( p1 ),
- param2( p2 )
- {
- };
- EventType type;
- float param1;
- float param2;
- };
- #endif // EVENT_H
|