BRE12
Public Types | Public Member Functions | Static Public Member Functions | List of all members
BRE::Mouse Class Reference

Public Types

enum  MouseButton { MouseButtonsLeft = 0, MouseButtonsRight, MouseButtonsMiddle, MouseButtonsX1 }
 

Public Member Functions

 Mouse (const Mouse &)=delete
 
const Mouseoperator= (const Mouse &)=delete
 
 Mouse (Mouse &&)=delete
 
Mouseoperator= (Mouse &&)=delete
 
void Update ()
 
__forceinline const DIMOUSESTATE & GetCurrentState () const
 
__forceinline const DIMOUSESTATE & GetLastState () const
 
__forceinline std::int32_t GetX () const
 
__forceinline std::int32_t GetY () const
 
__forceinline std::int32_t GetWheel () const
 
__forceinline bool IsButtonUp (const MouseButton button) const
 
__forceinline bool IsButtonDown (const MouseButton button) const
 
__forceinline bool WasButtonUp (const MouseButton button) const
 
__forceinline bool WasButtonDown (const MouseButton button) const
 
__forceinline bool WasButtonPressedThisFrame (const MouseButton button) const
 
__forceinline bool WasButtonReleasedThisFrame (const MouseButton button) const
 
__forceinline bool IsButtonHeldDown (const MouseButton button) const
 

Static Public Member Functions

static MouseCreate (IDirectInput8 &directInput, const HWND windowHandle) noexcept
 
static MouseGet () noexcept
 

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