From a207a57116941ac2244165cae68f80a579c2e918 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 27 Nov 2004 02:33:03 +0000 Subject: [PATCH] cleanup: use one line for header short description do not use "#pragma once" --- stepmania/src/VirtualKeyboard.cpp | 13 ++++++++++--- stepmania/src/VirtualKeyboard.h | 15 ++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/stepmania/src/VirtualKeyboard.cpp b/stepmania/src/VirtualKeyboard.cpp index 64183d61ae..7ff688b1df 100644 --- a/stepmania/src/VirtualKeyboard.cpp +++ b/stepmania/src/VirtualKeyboard.cpp @@ -1,3 +1,10 @@ +/* + * Commands are mapped as follows: + * left - delete + * right - move cursor right (with space as default character) + * up/down - change right most character to next/previous character + */ + #include "global.h" #include "VirtualKeyboard.h" @@ -12,12 +19,12 @@ VirtualKeyboard::~VirtualKeyboard() { } -void VirtualKeyboard::Reset(VirtualKeyboardMode mode) +void VirtualKeyboard::Reset( VirtualKeyboardMode mode ) { currentMode = mode; } -int VirtualKeyboard::Translate(const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar) +int VirtualKeyboard::Translate( const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar ) { *nextChar = false; MenuButton button = MenuI.button; @@ -216,4 +223,4 @@ int VirtualKeyboard::Translate(const DeviceInput& DeviceI, const MenuInput &Menu * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. - */ \ No newline at end of file + */ diff --git a/stepmania/src/VirtualKeyboard.h b/stepmania/src/VirtualKeyboard.h index f52101d32d..409c289474 100644 --- a/stepmania/src/VirtualKeyboard.h +++ b/stepmania/src/VirtualKeyboard.h @@ -1,15 +1,8 @@ -/* Allows a user to input profile names or IP addresses without using a keyboard. - * Commands are mapped as follows: - * left - delete - * right - move cursor right (with space as default character) - * up/down - change right most character to next/previous character - */ +/* Allows a user to input profile names or IP addresses without using a keyboard. */ -#if !defined(VIRTUAL_KEYBOARD_H) +#ifndef VIRTUAL_KEYBOARD_H #define VIRTUAL_KEYBOARD_H -#pragma once - #include "RageInputDevice.h" #include "MenuInput.h" @@ -21,8 +14,8 @@ public: VirtualKeyboard(); ~VirtualKeyboard(); - void Reset(VirtualKeyboardMode mode); - int Translate(const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar); + void Reset( VirtualKeyboardMode mode ); + int Translate( const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar ); protected: VirtualKeyboardMode currentMode;