Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Input::MouseCursorEvent Class Reference

Class for mouse cursor event. More...

#include <mouse_cursor_event.h>

Inheritance diagram for Input::MouseCursorEvent:
Events::Event

Public Member Functions

 MouseCursorEvent (const glm::dvec2 &pos)
 MouseCursorEvent constructor. More...
 
glm::dvec2 getPosition () const noexcept
 Gets the position. More...
 
- Public Member Functions inherited from Events::Event
 Event (const EventType &type)
 Event constructor. More...
 
EventType getEventType () const
 Gets the event type. More...
 

Static Public Member Functions

static std::shared_ptr
< MouseCursorEvent
create (const glm::dvec2 &pos)
 Factory function. More...
 

Detailed Description

Class for mouse cursor event.

Constructor & Destructor Documentation

Input::MouseCursorEvent::MouseCursorEvent ( const glm::dvec2 &  pos)
inline

MouseCursorEvent constructor.

Parameters
[in]posThe position

Member Function Documentation

static std::shared_ptr<MouseCursorEvent> Input::MouseCursorEvent::create ( const glm::dvec2 &  pos)
inlinestatic

Factory function.

Parameters
[in]posThe position
Returns
Newly created MouseCursorEvent

Referenced by generated::getMouseCursorEventModule(), and Input::InputSystem::pollForInput().

glm::dvec2 Input::MouseCursorEvent::getPosition ( ) const
inlinenoexcept

Gets the position.

Returns
The position.

Referenced by generated::getMouseCursorEventModule().


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