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

Maps the contract's buttons to sfml buttons, and reads the state the window accumulated while popping its events. Definitions in SfmlWindow.hpp, once SfmlWindow is complete. More...

#include <SfmlMouse.hpp>

Inheritance diagram for SfmlMouse:
Collaboration diagram for SfmlMouse:

Public Member Functions

 SfmlMouse (SfmlWindow &window)
 ~SfmlMouse () 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
}

Detailed Description

Maps the contract's buttons to sfml buttons, and reads the state the window accumulated while popping its events. Definitions in SfmlWindow.hpp, once SfmlWindow is complete.

Constructor & Destructor Documentation

◆ SfmlMouse()

SfmlMouse::SfmlMouse ( SfmlWindow & window)
inline

◆ ~SfmlMouse()

SfmlMouse::~SfmlMouse ( )
overridedefault

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