From 3b76f6dc80c50737c79051461f86eb18c4a13b1d Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Tue, 8 Sep 2009 16:07:13 +0000 Subject: =?UTF-8?q?get=20rid=20of=20the=20'=C2=AF'=20chars=20in=20source?= =?UTF-8?q?=20code...non=20ascii=20chars=20are=20not=20really=20good=20to?= =?UTF-8?q?=20have=20floating=20around=20for=20no=20reason.=20http://googl?= =?UTF-8?q?e-styleguide.googlecode.com/svn/trunk/cppguide.xml=3Fshowone=3D?= =?UTF-8?q?Non-ASCII=5FCharacters#Non-ASCII=5FCharacters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4231 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/InputCommon/Src/SDL.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Source/Core/InputCommon/Src/SDL.cpp') 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 &_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 &_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) -- cgit v1.2.3