mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
ControllerInterface/DInput: Optimize cursor position updating.
This commit is contained in:
@ -13,7 +13,7 @@ namespace ciface
|
||||
{
|
||||
namespace DInput
|
||||
{
|
||||
void InitKeyboardMouse(IDirectInput8* const idi8);
|
||||
void InitKeyboardMouse(IDirectInput8* const idi8, HWND hwnd);
|
||||
|
||||
class KeyboardMouse : public Core::Device
|
||||
{
|
||||
@ -85,16 +85,21 @@ private:
|
||||
public:
|
||||
void UpdateInput() override;
|
||||
|
||||
KeyboardMouse(const LPDIRECTINPUTDEVICE8 kb_device, const LPDIRECTINPUTDEVICE8 mo_device);
|
||||
KeyboardMouse(const LPDIRECTINPUTDEVICE8 kb_device, const LPDIRECTINPUTDEVICE8 mo_device,
|
||||
HWND hwnd);
|
||||
~KeyboardMouse();
|
||||
|
||||
std::string GetName() const override;
|
||||
std::string GetSource() const override;
|
||||
|
||||
private:
|
||||
void UpdateCursorInput();
|
||||
|
||||
const LPDIRECTINPUTDEVICE8 m_kb_device;
|
||||
const LPDIRECTINPUTDEVICE8 m_mo_device;
|
||||
|
||||
const HWND m_hwnd;
|
||||
|
||||
DWORD m_last_update;
|
||||
State m_state_in;
|
||||
};
|
||||
|
Reference in New Issue
Block a user