Skip to content

Commit 4b9a92a

Browse files
committed
Fixed linker error.
1 parent f10ef08 commit 4b9a92a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

NativeCore/Windows/Input.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

139139
void __stdcall ReleaseInput(RC_Pointer handle)

0 commit comments

Comments
 (0)