PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
RayMouse Class Reference

Raylib Mouse class. More...

#include <RayMouse.hpp>

Inheritance diagram for RayMouse:
graphic::IMouse

Public Member Functions

 RayMouse (graphic::IEvent *event)
 
bool isButtonPressed (Buttons key) const override
 notice if a button is pressed
 
bool isButtonDown (Buttons key) const override
 notice if a button is down
 
bool isButtonReleased (Buttons key) const override
 notice if a button is released
 
bool isButtonUp (Buttons key) const override
 notice if a button is up
 
__v2f_t getPosition () const override
 get the position of the mouse
 
void setPosition (__v2f_t position) override
 set the position of the mouse
 
float GetMouseWheelMove () const override
 get the mouse wheel move
 
void update () override
 set 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

Raylib Mouse class.


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