Review Changes 11

This commit is contained in:
Daniel Stuart Baxter 2015-05-31 11:28:09 -05:00
parent a8f3b1739d
commit 5dbd3c53f7
3 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@ void Init(EmuWindow* emu_window) {
Kernel::Init();
HLE::Init();
VideoCore::Init(emu_window);
InputCommon::Init(InputCommon::ControllerBackends::SDL2);
InputCommon::Init(InputCommon::InputBackends::SDL2);
}
void Shutdown() {

View File

@ -40,17 +40,17 @@ Service::HID::PadState InputBase::GetPadState() const {
return controller.pad_state;
}
void Init(ControllerBackends backend) {
void Init(InputBackends backend) {
switch (backend) {
#ifdef HAS_SDL
// SDL2 backend selected
case ControllerBackends::SDL2:
case InputBackends::SDL2:
g_user_input = new SDLController();
break;
#endif
// No backend selected
case ControllerBackends::NONE:
case InputBackends::NONE:
break;
// If no backend whatsoever inits, launch a critical log

View File

@ -10,12 +10,12 @@
namespace InputCommon {
/// Enum defining available backends
enum class ControllerBackends {
enum InputBackends {
NONE,
SDL2
};
class InputBase {
class InputBase : NonCopyable {
public:
InputBase() {}
virtual ~InputBase() {}
@ -49,7 +49,7 @@ protected:
};
/// Initialize the user input system
void Init(ControllerBackends backend);
void Init(InputBackends backend);
/// Deactive the user input system
void Shutdown();