mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
Somethin'
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1777 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -12,8 +12,7 @@ enum InputType
|
||||
JoystickInput
|
||||
};
|
||||
|
||||
enum Modifiers
|
||||
{
|
||||
enum Modifiers {
|
||||
UseAlt = 1,
|
||||
UseShift = 2,
|
||||
UseCtrl = 4
|
||||
@ -28,15 +27,15 @@ struct Keys
|
||||
sf::Mouse::Button mouseButton;
|
||||
};
|
||||
|
||||
class EventHandler
|
||||
{
|
||||
private:
|
||||
listenFuncPtr keys[sf::Key::Count][8];
|
||||
listenFuncPtr mouse[sf::Mouse::Count];
|
||||
listenFuncPtr joys[sf::Joy::Count];
|
||||
std::queue<sf::Event> eventQueue;
|
||||
class EventHandler {
|
||||
|
||||
public:
|
||||
private:
|
||||
listenFuncPtr keys[sf::Key::Escape+1][8];
|
||||
listenFuncPtr mouse[sf::Mouse::Count+1];
|
||||
listenFuncPtr joys[sf::Joy::Count+1];
|
||||
std::queue<sf::Event> eventQueue;
|
||||
public:
|
||||
EventHandler();
|
||||
bool RegisterEventListener(listenFuncPtr func, Keys key);
|
||||
bool RemoveEventListener(Keys key);
|
||||
void Update();
|
||||
|
Reference in New Issue
Block a user