OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2MouseCursor.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Rectangle.h"
4
6
8{
9public:
17
18public:
20
21 TBOOL Create( const TCHAR* a_szPointerUpTexture, const TCHAR* a_szPointerDownTexture, TFLOAT a_fScalar );
22 void Update();
23
24 void MoveCursor( TFLOAT a_fDeltaX, TFLOAT a_fDeltaY );
25
26 const Toshi::TVector2& GetCursorCenter() const { return m_CursorCenter; }
27 const Toshi::TVector2& GetCursorPos() const { return m_CursorPos; }
28
29private:
30 Toshi::TVector2 m_MousePos;
31 Toshi::TVector2 m_CursorCenter;
32 Toshi::TVector2 m_CursorPos;
33 Toshi::TInputDeviceMouse* m_pMouseDevice;
34 AGUI2TextureSection* m_pPointerUpSection;
35 AGUI2TextureSection* m_pPointerDownSection;
36 TFLOAT m_fCursorAccelerations[ Acceleration_NUMOF ];
37 Acceleration m_eAccelerationType;
38 TBOOL m_bIsMouseDown;
39 Toshi::TVector2 m_RadialFieldPos;
40 TFLOAT m_fRadialRadius;
41};
Mouse input device for the Toshi engine.
char TCHAR
Definition Typedefs.h:20
float TFLOAT
Definition Typedefs.h:4
uint32_t TUINT32
Definition Typedefs.h:13
bool TBOOL
Definition Typedefs.h:6
const Toshi::TVector2 & GetCursorPos() const
TBOOL Create(const TCHAR *a_szPointerUpTexture, const TCHAR *a_szPointerDownTexture, TFLOAT a_fScalar)
const Toshi::TVector2 & GetCursorCenter() const
void MoveCursor(TFLOAT a_fDeltaX, TFLOAT a_fDeltaY)