raylib_impl 0.1.0
Vendor raylib 5.5 : IGraphic2Module / IGraphic3Module / IAudioModule
Loading...
Searching...
No Matches
RayMouse Class Reference

raylib mouse. More...

#include <RayMouse.hpp>

Inheritance diagram for RayMouse:
Collaboration diagram for RayMouse:

Public Member Functions

 RayMouse ()=default
 
 ~RayMouse () override=default
 
bool isButtonPressed (Buttons key) const override
 
bool isButtonDown (Buttons key) const override
 
bool isButtonReleased (Buttons key) const override
 
bool isButtonUp (Buttons key) const override
 
Vector2f getPosition () const override
 
void setPosition (Vector2f position) override
 
float GetMouseWheelMove () const override
 

Detailed Description

raylib mouse.

The one place in the wrapper resting on a numeric coincidence : IMouse::Buttons and raylib's MouseButton share the same values, so the value is passed straight through with no mapping table. Reordering either enum breaks it silently.

Constructor & Destructor Documentation

◆ RayMouse()

RayMouse::RayMouse ( )
default

◆ ~RayMouse()

RayMouse::~RayMouse ( )
overridedefault

Member Function Documentation

◆ GetMouseWheelMove()

float RayMouse::GetMouseWheelMove ( ) const
inlineoverride

◆ getPosition()

Vector2f RayMouse::getPosition ( ) const
inlineoverride

◆ isButtonDown()

bool RayMouse::isButtonDown ( Buttons  key) const
inlineoverride

◆ isButtonPressed()

bool RayMouse::isButtonPressed ( Buttons  key) const
inlineoverride

◆ isButtonReleased()

bool RayMouse::isButtonReleased ( Buttons  key) const
inlineoverride

◆ isButtonUp()

bool RayMouse::isButtonUp ( Buttons  key) const
inlineoverride

◆ setPosition()

void RayMouse::setPosition ( Vector2f  position)
inlineoverride

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