AGXDynamics  2.35.0.3
Events.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXIO_EVENTS_H
18 #define AGXIO_EVENTS_H
19 
20 #include <agx/HashTable.h>
21 #include <agx/Event.h>
22 #include <agx/String.h>
23 #include <agx/agxCore_export.h>
24 #include <agx/Vec2.h>
25 
26 namespace agxIO
27 {
29  {
35  };
36 
37  enum EventType
38  {
41  };
42 
43 
46 
48  // void AGXCORE_EXPORT unregisterKeyboardCallback(int key, InputEvent::CallbackType *callback);
49  void AGXCORE_EXPORT triggerKeyboardEvent(int key, EventType type);
52  void AGXCORE_EXPORT triggerMouseEvent(MouseButton button, EventType type, const agx::Vec2& pos);
53 }
54 
55 
56 #endif /* _AGXIO_EVENTS_H_ */
AGXCORE_EXPORT
#define AGXCORE_EXPORT
agxIO::triggerKeyboardEvent
void AGXCORE_EXPORT triggerKeyboardEvent(int key, EventType type)
agxIO::MOUSE_WHEELDOWN
@ MOUSE_WHEELDOWN
Definition: Events.h:34
agxIO::EVENT_DOWN
@ EVENT_DOWN
Definition: Events.h:39
agxIO::registerMouseCallback
void AGXCORE_EXPORT registerMouseCallback(MouseEvent::CallbackType *callback)
HashTable.h
agxIO::InputEvent
agx::Event2< int, EventType > InputEvent
Definition: Events.h:44
agxIO::EVENT_UP
@ EVENT_UP
Definition: Events.h:40
Vec2.h
agxIO::EventType
EventType
Definition: Events.h:37
agxIO::triggerMouseEvent
void AGXCORE_EXPORT triggerMouseEvent(MouseButton button, EventType type, const agx::Vec2 &pos)
agx::Event3
An event with three arguments.
Definition: Event.h:140
agxIO::MouseButton
MouseButton
Definition: Events.h:28
Event.h
agx::Vec2T
Definition: Vec2Template.h:30
agxCore_export.h
agxIO::MOUSE_WHEELUP
@ MOUSE_WHEELUP
Definition: Events.h:33
agx::Callback3
Templated callback with three arguments.
Definition: Callback.h:181
agxIO::unregisterMouseCallback
void AGXCORE_EXPORT unregisterMouseCallback(MouseEvent::CallbackType *callback)
agxIO::MOUSE_MIDDLE
@ MOUSE_MIDDLE
Definition: Events.h:32
String.h
agxIO::registerKeyboardCallback
void AGXCORE_EXPORT registerKeyboardCallback(int key, InputEvent::CallbackType *callback)
agxIO::MOUSE_LEFT
@ MOUSE_LEFT
Definition: Events.h:30
agxIO::MouseEvent
agx::Event3< MouseButton, EventType, agx::Vec2 > MouseEvent
Definition: Events.h:45
agx::Callback2
Templated callback with two arguments.
Definition: Callback.h:139
agx::Event2
An event with two arguments.
Definition: Event.h:121
agxIO
The agxIO namespace contains classes for reading, writing and finding files.
Definition: Material.h:41
agxIO::MOUSE_RIGHT
@ MOUSE_RIGHT
Definition: Events.h:31