diff --git a/src/Makefile.am b/src/Makefile.am
index 11abaff3..75dc7f01 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -101,7 +101,7 @@ liblol_core_sources = \
\
audio/audio.cpp audio/sample.cpp \
\
- ui/input.cpp ui/input.h ui/input_internal.h ui/keys.inc \
+ ui/input.cpp ui/input.h ui/keys.inc \
ui/controller.cpp ui/controller.h \
ui/gui.cpp ui/gui.h \
\
diff --git a/src/application/android-app.cpp b/src/application/android-app.cpp
index e34d4c1c..4294734f 100644
--- a/src/application/android-app.cpp
+++ b/src/application/android-app.cpp
@@ -28,7 +28,7 @@ extern "C" {
}
#include "application/android-app.h"
-#include "ui/input_internal.h"
+#include "ui/input.h"
using namespace lol;
@@ -84,7 +84,7 @@ public:
/* FIXME: we need proper unproject or at least screen space events!! */
ivec2 m_wanted_resolution;
- InputDeviceInternal* m_mouse;
+ InputDevice* m_mouse;
SavedState m_state;
@@ -344,7 +344,7 @@ lol::AndroidApp::AndroidApp(char const *title, ivec2 res, float fps)
Ticker::Setup(fps);
m_data->m_wanted_resolution = res;
- m_data->m_mouse = InputDeviceInternal::CreateStandardMouse();
+ m_data->m_mouse = InputDevice::CreateStandardMouse();
}
void lol::AndroidApp::ShowPointer(bool show)
diff --git a/src/lol-core.vcxproj b/src/lol-core.vcxproj
index ce8f5a2d..9ffe1715 100644
--- a/src/lol-core.vcxproj
+++ b/src/lol-core.vcxproj
@@ -291,7 +291,6 @@
-
true
diff --git a/src/lol-core.vcxproj.filter b/src/lol-core.vcxproj.filter
index 9e368cb1..60672514 100644
--- a/src/lol-core.vcxproj.filter
+++ b/src/lol-core.vcxproj.filter
@@ -683,9 +683,6 @@
ui
-
- ui
-
...
diff --git a/src/ui/d3d9-input.cpp b/src/ui/d3d9-input.cpp
index 22cd4f1f..67d9986d 100644
--- a/src/ui/d3d9-input.cpp
+++ b/src/ui/d3d9-input.cpp
@@ -21,7 +21,7 @@
#include
#include "ui/d3d9-input.h"
-#include "ui/input_internal.h"
+#include "ui/input.h"
namespace lol
{
@@ -57,7 +57,7 @@ class D3d9InputData
private:
#if defined LOL_USE_XINPUT
- array m_joysticks;
+ array m_joysticks;
#endif // LOL_USE_XINPUT
};
@@ -75,7 +75,7 @@ D3d9Input::D3d9Input()
if (XInputGetState(i, &state) != ERROR_SUCCESS)
continue;
// TODO: we can put more friendly name here, such as LeftAxisX, ButtonX...
- InputDeviceInternal* stick = new InputDeviceInternal(g_name_joystick(i + 1));
+ InputDevice* stick = new InputDevice(g_name_joystick(i + 1));
stick->AddAxis(g_name_xbox_axis_left_x.c_str());
stick->AddAxis(g_name_xbox_axis_left_y.c_str());
diff --git a/src/ui/input.cpp b/src/ui/input.cpp
index efda2996..b05d230c 100644
--- a/src/ui/input.cpp
+++ b/src/ui/input.cpp
@@ -15,12 +15,20 @@
#include
#include