mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
4f43cff5ca
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing Let's also move net while we're at it. Move the ZIM/PNG loaders over to Common. Move the UI framework into Common iOS buildfix * Buildfix * Buildfixes * Apple buildfix * This typo again.. * UWP buildfix * Fix build of PPSSPPQt, such as it is (it's not in good condition...) * Guess what? Another buildfix.
31 lines
690 B
C++
31 lines
690 B
C++
#pragma once
|
|
#ifdef _MSC_VER
|
|
#include "SDL/SDL.h"
|
|
#include "SDL/SDL_thread.h"
|
|
#else
|
|
#include "SDL.h"
|
|
#include "SDL_thread.h"
|
|
#endif
|
|
|
|
#include "Common/Input/InputState.h"
|
|
#include "Common/Input/KeyCodes.h"
|
|
#include "Common/Net/Resolve.h"
|
|
|
|
class SDLJoystick{
|
|
public:
|
|
SDLJoystick(bool init_SDL = false);
|
|
~SDLJoystick();
|
|
|
|
void registerEventHandler();
|
|
void ProcessInput(SDL_Event &event);
|
|
|
|
private:
|
|
void setUpController(int deviceIndex);
|
|
void setUpControllers();
|
|
keycode_t getKeycodeForButton(SDL_GameControllerButton button);
|
|
int getDeviceIndex(int instanceId);
|
|
bool registeredAsEventHandler;
|
|
std::vector<SDL_GameController *> controllers;
|
|
std::map<int, int> controllerDeviceMap;
|
|
};
|