mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
b4b195d01b
NetPlay: Fixed a few issues (crashes when connecting)
21 lines
431 B
C++
21 lines
431 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
enum class MouseButton
|
|
{
|
|
LeftButton = 0,
|
|
RightButton = 1,
|
|
MiddleButton = 2,
|
|
};
|
|
|
|
class IKeyManager
|
|
{
|
|
public:
|
|
virtual void RefreshState() = 0;
|
|
virtual bool IsMouseButtonPressed(MouseButton button) = 0;
|
|
virtual bool IsKeyPressed(uint32_t keyCode) = 0;
|
|
virtual uint32_t GetPressedKey() = 0;
|
|
virtual string GetKeyName(uint32_t keyCode) = 0;
|
|
virtual uint32_t GetKeyCode(string keyName) = 0;
|
|
}; |