use one line for header short description
 do not use "#pragma once"
This commit is contained in:
Glenn Maynard
2004-11-27 02:33:03 +00:00
parent ccf3cc79e4
commit a207a57116
2 changed files with 14 additions and 14 deletions
+9 -2
View File
@@ -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 "global.h"
#include "VirtualKeyboard.h" #include "VirtualKeyboard.h"
@@ -12,12 +19,12 @@ VirtualKeyboard::~VirtualKeyboard()
{ {
} }
void VirtualKeyboard::Reset(VirtualKeyboardMode mode) void VirtualKeyboard::Reset( VirtualKeyboardMode mode )
{ {
currentMode = 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; *nextChar = false;
MenuButton button = MenuI.button; MenuButton button = MenuI.button;
+4 -11
View File
@@ -1,15 +1,8 @@
/* Allows a user to input profile names or IP addresses without using a keyboard. /* 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
*/
#if !defined(VIRTUAL_KEYBOARD_H) #ifndef VIRTUAL_KEYBOARD_H
#define VIRTUAL_KEYBOARD_H #define VIRTUAL_KEYBOARD_H
#pragma once
#include "RageInputDevice.h" #include "RageInputDevice.h"
#include "MenuInput.h" #include "MenuInput.h"
@@ -21,8 +14,8 @@ public:
VirtualKeyboard(); VirtualKeyboard();
~VirtualKeyboard(); ~VirtualKeyboard();
void Reset(VirtualKeyboardMode mode); void Reset( VirtualKeyboardMode mode );
int Translate(const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar); int Translate( const DeviceInput& DeviceI, const MenuInput &MenuI, const wstring &cur_string, bool *nextChar );
protected: protected:
VirtualKeyboardMode currentMode; VirtualKeyboardMode currentMode;