mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-30 12:30:52 +00:00
28 lines
647 B
C++
28 lines
647 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
enum class MouseButton
|
|
{
|
|
LeftButton = 0,
|
|
RightButton = 1,
|
|
MiddleButton = 2,
|
|
};
|
|
|
|
class IKeyManager
|
|
{
|
|
public:
|
|
virtual ~IKeyManager() {}
|
|
|
|
virtual void RefreshState() = 0;
|
|
virtual void UpdateDevices() = 0;
|
|
virtual bool IsMouseButtonPressed(MouseButton button) = 0;
|
|
virtual bool IsKeyPressed(uint32_t keyCode) = 0;
|
|
virtual vector<uint32_t> GetPressedKeys() = 0;
|
|
virtual string GetKeyName(uint32_t keyCode) = 0;
|
|
virtual uint32_t GetKeyCode(string keyName) = 0;
|
|
|
|
virtual void SetKeyState(uint16_t scanCode, bool state) = 0;
|
|
virtual void ResetKeyState() = 0;
|
|
virtual void SetDisabled(bool disabled) = 0;
|
|
}; |