diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2009-09-08 16:07:13 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2009-09-08 16:07:13 +0000 |
| commit | 3b76f6dc80c50737c79051461f86eb18c4a13b1d (patch) | |
| tree | 4095f79cd5741ce999afdfef0798ddda968c022f /Source/Core/InputCommon/Src/SDL.cpp | |
| parent | 463e93c41a87b5ebdba2fea607c746ee2a1b3dee (diff) | |
get rid of the 'ÂŻ' chars in source code...non ascii chars are not really good to have floating around for no reason. http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Non-ASCII_Characters#Non-ASCII_Characters
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4231 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/SDL.cpp')
| -rw-r--r-- | Source/Core/InputCommon/Src/SDL.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/Core/InputCommon/Src/SDL.cpp b/Source/Core/InputCommon/Src/SDL.cpp index 601915562d..45767f9447 100644 --- a/Source/Core/InputCommon/Src/SDL.cpp +++ b/Source/Core/InputCommon/Src/SDL.cpp @@ -1,6 +1,6 @@ // Project description -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- // Name: SDL Input // Description: Common SDL Input Functions // @@ -31,7 +31,7 @@ // Include -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- #define _SDL_MAIN_ // Avoid certain declarations in SDL.h #include "SDL.h" // Local #include "XInput.h" @@ -40,7 +40,7 @@ // Definitions -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- int g_LastPad = 0; @@ -50,14 +50,14 @@ namespace InputCommon // Definitions -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- // Search attached devices. Populate joyinfo for all attached physical devices. -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ----------------------- bool SearchDevices(std::vector<CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_NumGoodPads) { /* SDL 1.3 use DirectInput instead of the old Microsoft Multimedia API, and with this we need @@ -113,16 +113,16 @@ bool SearchDevices(std::vector<CONTROLLER_INFO> &_joyinfo, int &_NumPads, int &_ // Supporting functions -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ---------------- // Read current joystick status -/* ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +/* ---------------- The value PadMapping[].buttons[] is the number of the assigned joypad button, PadState[].buttons[] is the status of the button, it becomes 0 (no pressed) or 1 (pressed) */ // Read buttons status. Called from GetJoyState(). -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ---------------------- void ReadButton(CONTROLLER_STATE &_PadState, CONTROLLER_MAPPING _PadMapping, int button, int NumButtons) { int ctl_button = _PadMapping.buttons[button]; @@ -133,7 +133,7 @@ void ReadButton(CONTROLLER_STATE &_PadState, CONTROLLER_MAPPING _PadMapping, int } // Request joystick state. -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ---------------------- /* Called from: PAD_GetStatus() Input: The virtual device 0, 1, 2 or 3 Function: Updates the PadState struct with the current pad status. The input value "controller" is @@ -242,10 +242,10 @@ void GetJoyState(CONTROLLER_STATE &_PadState, CONTROLLER_MAPPING _PadMapping, in // Configure button mapping -// ŻŻŻŻŻŻŻŻŻŻ +// ---------- // Avoid extreme axis values -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// --------------------- /* Function: We have to avoid very big values to becuse some triggers are -0x8000 in the unpressed state (and then go from -0x8000 to 0x8000 as they are fully pressed) */ bool AvoidValues(int value, bool NoTriggerFilter) @@ -260,7 +260,7 @@ bool AvoidValues(int value, bool NoTriggerFilter) // Detect a pressed button -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// --------------------- void GetButton(SDL_Joystick *joy, int ControllerID, int buttons, int axes, int hats, int &KeyboardKey, int &value, int &type, int &pressed, bool &Succeed, bool &Stop, bool LeftRight, bool Axis, bool XInput, bool Button, bool Hat, bool NoTriggerFilter) |
