mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
add inputcommon and padsimpleEvnt to windows build. note: the plugin is disabled atm; it builds but isn't fit for general consumption. Also a bit of dolphin-style cleanup on inputcommon
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1768 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -12,7 +12,8 @@ enum InputType
|
||||
JoystickInput
|
||||
};
|
||||
|
||||
enum Modifiers {
|
||||
enum Modifiers
|
||||
{
|
||||
UseAlt = 1,
|
||||
UseShift = 2,
|
||||
UseCtrl = 4
|
||||
@ -27,13 +28,14 @@ struct Keys
|
||||
sf::Mouse::Button mouseButton;
|
||||
};
|
||||
|
||||
class EventHandler {
|
||||
|
||||
class EventHandler
|
||||
{
|
||||
private:
|
||||
listenFuncPtr keys[sf::Key::Count][8];
|
||||
listenFuncPtr mouse[sf::Mouse::Count];
|
||||
listenFuncPtr joys[sf::Joy::Count];
|
||||
std::queue<sf::Event> eventQueue;
|
||||
|
||||
public:
|
||||
bool RegisterEventListener(listenFuncPtr func, Keys key);
|
||||
bool RemoveEventListener(Keys key);
|
||||
|
Reference in New Issue
Block a user