P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
SdlMouse Class Reference

#include <SdlMouse.hpp>

Inheritance diagram for SdlMouse:
Collaboration diagram for SdlMouse:

Public Member Functions

 SdlMouse (SdlWindow &window)
 ~SdlMouse () override=default
bool isButtonPressed (Buttons key) const override
 notice if a button is pressed
bool isButtonReleased (Buttons key) const override
 notice if a button is released
bool isButtonDown (Buttons key) const override
 notice if a button is down
bool isButtonUp (Buttons key) const override
 notice if a button is up
Vector2f getPosition () const override
 get the position of the mouse
void setPosition (Vector2f position) override
 set the position of the mouse
float GetMouseWheelMove () const override
 get the mouse wheel move
 SdlMouse (SdlWindow &window)
 ~SdlMouse () override=default
bool isButtonPressed (Buttons key) const override
 notice if a button is pressed
bool isButtonReleased (Buttons key) const override
 notice if a button is released
bool isButtonDown (Buttons key) const override
 notice if a button is down
bool isButtonUp (Buttons key) const override
 notice if a button is up
Vector2f getPosition () const override
 get the position of the mouse
void setPosition (Vector2f position) override
 set the position of the mouse
float GetMouseWheelMove () const override
 get the mouse wheel move
Public Member Functions inherited from graphic::IMouse
virtual ~IMouse ()=default
 Destroy the IMouse interface.

Additional Inherited Members

Public Types inherited from graphic::IMouse
enum  Buttons {
  BUTTON_LEFT , BUTTON_RIGHT , BUTTON_MIDDLE , EXTRA_BUTTON_1 ,
  EXTRA_BUTTON_2
}

Constructor & Destructor Documentation

◆ SdlMouse() [1/2]

SdlMouse::SdlMouse ( SdlWindow & window)
inline

◆ ~SdlMouse() [1/2]

SdlMouse::~SdlMouse ( )
overridedefault

◆ SdlMouse() [2/2]

SdlMouse::SdlMouse ( SdlWindow & window)
inline

◆ ~SdlMouse() [2/2]

SdlMouse::~SdlMouse ( )
overridedefault

Member Function Documentation

◆ GetMouseWheelMove()

float SdlMouse::GetMouseWheelMove ( ) const
overridevirtual

get the mouse wheel move

Returns
float

Implements graphic::IMouse.

◆ getPosition()

Vector2f SdlMouse::getPosition ( ) const
overridevirtual

get the position of the mouse

Returns
Vector2f

Implements graphic::IMouse.

◆ isButtonDown()

bool SdlMouse::isButtonDown ( Buttons key) const
overridevirtual

notice if a button is down

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonPressed()

bool SdlMouse::isButtonPressed ( Buttons key) const
overridevirtual

notice if a button is pressed

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonReleased()

bool SdlMouse::isButtonReleased ( Buttons key) const
overridevirtual

notice if a button is released

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ isButtonUp()

bool SdlMouse::isButtonUp ( Buttons key) const
overridevirtual

notice if a button is up

Parameters
key
Returns
true
false

Implements graphic::IMouse.

◆ setPosition()

void SdlMouse::setPosition ( Vector2f position)
overridevirtual

set the position of the mouse

Parameters
position

Implements graphic::IMouse.


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