summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/Src/XInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/InputCommon/Src/XInput.cpp')
-rw-r--r--Source/Core/InputCommon/Src/XInput.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/InputCommon/Src/XInput.cpp b/Source/Core/InputCommon/Src/XInput.cpp
index e49fe65ade..267bf4e714 100644
--- a/Source/Core/InputCommon/Src/XInput.cpp
+++ b/Source/Core/InputCommon/Src/XInput.cpp
@@ -22,7 +22,7 @@
// File description
-/* ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+/* -------------------
Function: This file will get the status of the analog triggers of any connected XInput device.
This code was made with the help of SimpleController.cpp in the June 2008 Microsoft DirectX SDK
Samples.
@@ -33,7 +33,7 @@
// Includes
-// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+// -------------------
#include <windows.h>
#include <XInput.h> // XInput API
@@ -47,7 +47,7 @@ namespace XInput
// Declarations
-// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+// -------------------
#define MAX_CONTROLLERS 4 // XInput handles up to 4 controllers
@@ -62,7 +62,7 @@ CONTROLER_STATE g_Controllers[MAX_CONTROLLERS];
// Init
-// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+// -------------------
/* Function: Calculate the number of connected XInput devices
Todo: Implement this to figure out if there are multiple XInput controllers connected,
we currently only try to connect to XInput device 0 */
@@ -92,7 +92,7 @@ void Init()
// Get the trigger status
-// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+// -------------------
int GetXI(int Controller, int Button)
{
// Update the internal status
@@ -118,7 +118,7 @@ int GetXI(int Controller, int Button)
// Check if a certain controller is connected
-// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
+// -------------------
bool IsConnected(int Controller)
{
DWORD dwResult = XInputGetState( Controller, &g_Controllers[Controller].state );