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

Class for mouse button up event. More...

#include <mouse_button_up_event.h>

Inheritance diagram for Input::MouseButtonUpEvent:
Events::Event

Public Member Functions

 MouseButtonUpEvent (const int button)
 MouseButtonUpEvent constructor. More...
 
int getButton () const noexcept
 Gets the button. 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
< MouseButtonUpEvent
create (const int button)
 Factory function. More...
 

Detailed Description

Class for mouse button up event.

Constructor & Destructor Documentation

Input::MouseButtonUpEvent::MouseButtonUpEvent ( const int  button)
inline

MouseButtonUpEvent constructor.

Parameters
[in]buttonThe button

Member Function Documentation

static std::shared_ptr<MouseButtonUpEvent> Input::MouseButtonUpEvent::create ( const int  button)
inlinestatic

Factory function.

Parameters
[in]buttonThe button
Returns
A newly constructed MouseButtonUpEvent

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

int Input::MouseButtonUpEvent::getButton ( ) const
inlinenoexcept

Gets the button.

Returns
The button.

Referenced by generated::getMouseButtonUpEventModule().


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