21 lines
406 B
C++
21 lines
406 B
C++
#pragma once
|
|
#include "DirectInputDevice.h"
|
|
|
|
namespace TLAC::Input
|
|
{
|
|
class DirectInputMouse : public DirectInputDevice
|
|
{
|
|
public:
|
|
DirectInputMouse();
|
|
~DirectInputMouse();
|
|
|
|
bool Poll();
|
|
|
|
inline long GetXPosition() { return mouseState.lX; };
|
|
inline long GetYPosition() { return mouseState.lY; };
|
|
inline long GetMouseWheel() { return mouseState.lZ; };
|
|
|
|
private:
|
|
DIMOUSESTATE mouseState;
|
|
};
|
|
} |