summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/input/input_win32.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-03-18 22:51:06 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-03-18 22:51:06 -0400
commitcadc351289a1460824c0a6cf66fa2026b0fd8c3d (patch)
tree46bfb80bfab89e5f896f6a9a4a1d227d2c849e5a /src/osd/modules/input/input_win32.cpp
parent042fe7a2ab581634ef93df850ebe6063e702c93d (diff)
General code cleanup in input modules. Using ComPtr to manage DirectInput resources.
Diffstat (limited to 'src/osd/modules/input/input_win32.cpp')
-rw-r--r--src/osd/modules/input/input_win32.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/osd/modules/input/input_win32.cpp b/src/osd/modules/input/input_win32.cpp
index 6256210ae7c..e9cfc734f2e 100644
--- a/src/osd/modules/input/input_win32.cpp
+++ b/src/osd/modules/input/input_win32.cpp
@@ -14,17 +14,11 @@
// standard windows headers
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#include <winioctl.h>
-#include <tchar.h>
#undef interface
-#include <mutex>
-
// MAME headers
#include "emu.h"
#include "osdepend.h"
-#include "ui/ui.h"
-#include "strconv.h"
// MAMEOS headers
#include "winmain.h"
@@ -101,13 +95,13 @@ public:
if (!input_enabled())
return FALSE;
- KeyPressEventArgs *args = nullptr;
+ KeyPressEventArgs *args;
switch (eventid)
{
case INPUT_EVENT_KEYDOWN:
case INPUT_EVENT_KEYUP:
- args = (KeyPressEventArgs*)eventdata;
+ args = static_cast<KeyPressEventArgs*>(eventdata);
for (int i = 0; i < devicelist()->size(); i++)
downcast<win32_keyboard_device*>(devicelist()->at(i))->queue_events(args, 1);