File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class DirectInput
4141 return true ;
4242 }
4343
44- bool GetPressedKeys (Keys* state [], int * count)
44+ bool ReadKeyboardState (Keys* keys [], int * count)
4545 {
4646 const int STATE_PRESSED = 0x80 ;
4747
@@ -107,7 +107,7 @@ class DirectInput
107107 }
108108 }
109109
110- *state = currentState.data ();
110+ *keys = currentState.data ();
111111 *count = currentState.size ();
112112
113113 return true ;
@@ -131,9 +131,9 @@ RC_Pointer __stdcall InitializeInput()
131131 return static_cast <RC_Pointer>(input);
132132}
133133
134- bool __stdcall GetPressedKeys (RC_Pointer handle, Keys* state [], int * count)
134+ bool __stdcall GetPressedKeys (RC_Pointer handle, Keys* keys [], int * count)
135135{
136- return static_cast <DirectInput*>(handle)->GetPressedKeys (state , count);
136+ return static_cast <DirectInput*>(handle)->ReadKeyboardState (keys , count);
137137}
138138
139139void __stdcall ReleaseInput (RC_Pointer handle)
You can’t perform that action at this time.
0 commit comments