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/Configuration.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Source/Core/InputCommon/Src/Configuration.cpp') diff --git a/Source/Core/InputCommon/Src/Configuration.cpp b/Source/Core/InputCommon/Src/Configuration.cpp index 1909fe2264..f7f25d2cfe 100644 --- a/Source/Core/InputCommon/Src/Configuration.cpp +++ b/Source/Core/InputCommon/Src/Configuration.cpp @@ -1,6 +1,6 @@ // Project description -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- // Name: Input Configuration and Calibration // Description: Common SDL Input Functions // @@ -32,7 +32,7 @@ // Include -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------------- #if defined HAVE_WX && HAVE_WX #include #endif @@ -52,7 +52,7 @@ namespace InputCommon // Degree to radian and back -// ŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ------------- float Deg2Rad(float Deg) { return Deg * ((float)M_PI / 180.0f); @@ -66,7 +66,7 @@ float Rad2Deg(float Rad) // Check if the pad is within the dead zone, we assume the range is 0x8000 -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ---------------- float CoordinatesToRadius(int x, int y) { return sqrt(pow((float)x, 2) + pow((float)y, 2)); @@ -90,13 +90,13 @@ bool IsDeadZone(float DeadZone, int x, int y) // Scale down stick values from 0x8000 to 0x80 -/* ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +/* ---------------- The value returned by SDL_JoystickGetAxis is a signed integer s16 (-32768 to 32767). The value used for the gamecube controller is an unsigned char u8 (0 to 255) with neutral at 0x80 (128), so that it's equivalent to a signed -128 to 127. */ -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// --------------------- int Pad_Convert(int _val) { /* If the limits on PadState[].axis[] actually is a u16 then we don't need this @@ -119,7 +119,7 @@ int Pad_Convert(int _val) // Adjust the radius -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// ---------------- void RadiusAdjustment(int &_x, int &_y, int _pad, std::string SRadius) { // Get the radius setting @@ -157,7 +157,7 @@ void RadiusAdjustment(int &_x, int &_y, int _pad, std::string SRadius) XBox 360 Wireless: 85% GameCube Controller (Third Party) with EMS Trio Linker Plus II: 60% */ -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// --------------------- /* Calculate the distance from the outer edges of the box to the outer edges of the circle inside the box at any angle from 0° to 360°. The returned value is 1 + Distance, for example at most sqrt(2) in the @@ -233,7 +233,7 @@ void Square2Circle(int &_x, int &_y, int _pad, std::string SDiagonal, bool Circl // Windows Virtual Key Codes Names -// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ +// --------------------- #ifdef _WIN32 std::string VKToString(int keycode) { -- cgit v1.2.3