diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-07-31 19:23:49 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-07-31 20:02:56 +0200 |
commit | 6f5e223853eceb25a542c81d86c5cc9c715e3879 (patch) | |
tree | 21f6aabcbe586f330d895b19f224bbc08f145321 /src/osd/modules/input | |
parent | 49bd91f3dee2a7a3e18dcc5be4ae5ea6d116157b (diff) |
for bool type use true and false (nw)
Diffstat (limited to 'src/osd/modules/input')
-rw-r--r-- | src/osd/modules/input/input_common.h | 8 | ||||
-rw-r--r-- | src/osd/modules/input/input_rawinput.cpp | 10 | ||||
-rw-r--r-- | src/osd/modules/input/input_win32.cpp | 10 |
3 files changed, 14 insertions, 14 deletions
diff --git a/src/osd/modules/input/input_common.h b/src/osd/modules/input/input_common.h index d3ac27a7862..45752639d0a 100644 --- a/src/osd/modules/input/input_common.h +++ b/src/osd/modules/input/input_common.h @@ -464,10 +464,10 @@ class input_module_base : public input_module public: input_module_base(const char *type, const char* name) : input_module(type, name), - m_input_enabled(FALSE), - m_mouse_enabled(FALSE), - m_lightgun_enabled(FALSE), - m_input_paused(FALSE), + m_input_enabled(false), + m_mouse_enabled(false), + m_lightgun_enabled(false), + m_input_paused(false), m_options(nullptr) { } diff --git a/src/osd/modules/input/input_rawinput.cpp b/src/osd/modules/input/input_rawinput.cpp index 739ae4496f3..1bd0cd9fe28 100644 --- a/src/osd/modules/input/input_rawinput.cpp +++ b/src/osd/modules/input/input_rawinput.cpp @@ -523,7 +523,7 @@ protected: { // Only handle raw input data if (!input_enabled() || eventid != INPUT_EVENT_RAWINPUT) - return FALSE; + return false; HRAWINPUT rawinputdevice = *static_cast<HRAWINPUT*>(eventdata); @@ -535,11 +535,11 @@ protected: // ignore if not enabled if (!input_enabled()) - return FALSE; + return false; // determine the size of databuffer we need if ((*get_rawinput_data)(rawinputdevice, RID_INPUT, nullptr, &size, sizeof(RAWINPUTHEADER)) != 0) - return FALSE; + return false; // if necessary, allocate a temporary buffer and fetch the data if (size > sizeof(small_buffer)) @@ -547,7 +547,7 @@ protected: larger_buffer = std::make_unique<BYTE[]>(size); data = larger_buffer.get(); if (data == nullptr) - return FALSE; + return false; } // fetch the data and process the appropriate message types @@ -567,7 +567,7 @@ protected: if (input->header.hDevice == devinfo->device_handle()) { devinfo->queue_events(input, 1); - result = TRUE; + result = true; } } } diff --git a/src/osd/modules/input/input_win32.cpp b/src/osd/modules/input/input_win32.cpp index dc9b95b3f28..ce1cf4e883f 100644 --- a/src/osd/modules/input/input_win32.cpp +++ b/src/osd/modules/input/input_win32.cpp @@ -95,7 +95,7 @@ public: bool handle_input_event(input_event eventid, void *eventdata) override { if (!input_enabled()) - return FALSE; + return false; KeyPressEventArgs *args; @@ -107,10 +107,10 @@ public: for (int i = 0; i < devicelist()->size(); i++) downcast<win32_keyboard_device*>(devicelist()->at(i))->queue_events(args, 1); - return TRUE; + return true; default: - return FALSE; + return false; } } }; @@ -231,13 +231,13 @@ public: bool handle_input_event(input_event eventid, void *eventdata) override { if (!input_enabled() || !mouse_enabled() || eventid != INPUT_EVENT_MOUSE_BUTTON) - return FALSE; + return false; auto args = static_cast<MouseButtonEventArgs*>(eventdata); for (int i = 0; i < devicelist()->size(); i++) downcast<win32_mouse_device*>(devicelist()->at(i))->queue_events(args, 1); - return TRUE; + return true; } }; |