AGX Dynamics  2.37.3.2
Events.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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_ */
agx::Event3< MouseButton, EventType, agx::Vec2 > MouseEvent
Definition: Events.h:45
The agxIO namespace contains classes for reading, writing and finding files.
Definition: Material.h:41
void AGXCORE_EXPORT triggerKeyboardEvent(int key, EventType type)
Templated callback with three arguments.
Definition: Callback.h:181
void AGXCORE_EXPORT registerMouseCallback(MouseEvent::CallbackType *callback)
agx::Event2< int, EventType > InputEvent
Definition: Events.h:44
void AGXCORE_EXPORT registerKeyboardCallback(int key, InputEvent::CallbackType *callback)
MouseButton
Definition: Events.h:28
void AGXCORE_EXPORT triggerMouseEvent(MouseButton button, EventType type, const agx::Vec2 &pos)
Templated callback with two arguments.
Definition: Callback.h:139
An event with two arguments.
Definition: Event.h:121
EventType
Definition: Events.h:37
void AGXCORE_EXPORT unregisterMouseCallback(MouseEvent::CallbackType *callback)
An event with three arguments.
Definition: Event.h:140
#define AGXCORE_EXPORT