Changeset 12348 for code/branches/MouseAPI_FS19/src/modules/MouseAPI
- Timestamp:
- May 9, 2019, 12:32:44 PM (6 years ago)
- Location:
- code/branches/MouseAPI_FS19/src/modules/MouseAPI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapi.h
r12333 r12348 18 18 #include "core/GUIManager.h" 19 19 #include "core/input/KeyBinderManager.h" 20 #include "tools/interfaces/Tickable.h" 20 21 21 22 /* This class implements a basic mouse-api … … 38 39 typedef uint ScrollableElementID; 39 40 40 class MouseAPI : public InputHandler, public Singleton<MouseAPI> 41 class MouseAPI : public InputHandler, public Singleton<MouseAPI>,public Tickable 41 42 { 42 43 friend class Singleton<MouseAPI>; … … 100 101 ~MouseAPI(); 101 102 103 virtual void tick(float dt) override; 104 102 105 /* everytime a mousebutton is pressed, this function is called and checks if the cursor is over an element that can be clicked on 103 106 * if yes, the function associated with this element will be called with the corresponding button as argument -
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapicursor.cc
r12334 r12348 7 7 MouseAPICursor::MouseAPICursor(Context* context):OrxonoxOverlay(context) 8 8 { 9 RegisterObject(MouseAPICursor); 9 10 //TODO: copy from radar overlay 10 11 } -
code/branches/MouseAPI_FS19/src/modules/MouseAPI/mouseapicursor.h
r12334 r12348 2 2 #define MOUSEAPICURSOR_H 3 3 #include <overlays/OrxonoxOverlay.h> 4 #include "core/CoreIncludes.h" 4 5 6 namespace orxonox{ 5 7 6 8 class MouseAPICursor: public OrxonoxOverlay … … 10 12 }; 11 13 14 } 15 12 16 #endif // MOUSEAPICURSOR_H
Note: See TracChangeset
for help on using the changeset viewer.