| View previous topic :: View next topic |
| Author |
Message |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 513
|
Posted: Sun Oct 12, 2025 11:54 am Post subject: Trying to retrieve input from XInput but fails to compile |
|
|
The error is in the image
| Code: |
DWORD XInputGetState(DWORD dwUserIndex, XINPUT_STATE *pState);
XINPUT_STATE state;
<-- causes the issue on this line, and is caused by calling the function
if (!XInputGetState(0, &state))
|
| Description: |
|
| Filesize: |
5.79 KB |
| Viewed: |
2855 Time(s) |

|
|
|
| Back to top |
|
 |
C1aref5 How do I cheat?
Reputation: 0
Joined: 20 Feb 2025 Posts: 5
|
Posted: Thu Oct 23, 2025 3:38 pm Post subject: |
|
|
Make sure you’ve zero-initialized your `XINPUT_STATE` structure before passing it:
--
Cheat engine tutorial
https://cheatengine.org/forum/viewtopic.php?t=623780
Last edited by C1aref5 on Sun Dec 07, 2025 7:00 pm; edited 1 time in total |
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 513
|
Posted: Thu Oct 23, 2025 9:02 pm Post subject: |
|
|
| C1aref5 wrote: | | Make sure you’ve zero-initialized your `XINPUT_STATE` structure before passing it: |
it only triggers on XInputGetState(& /*HERE*/)
|
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 513
|
Posted: Fri Feb 13, 2026 12:36 am Post subject: |
|
|
| Any help is appreciated
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25875 Location: The netherlands
|
Posted: Fri Feb 13, 2026 5:53 am Post subject: |
|
|
change it to "unsigned int XInputGetState(DWORD dwUserIndex, XINPUT_STATE *pState);"
fixed in the upcoming CE version
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Frouk Grandmaster Cheater
Reputation: 5
Joined: 22 Jun 2021 Posts: 513
|
Posted: Fri Feb 13, 2026 6:48 am Post subject: |
|
|
| It works, thanks DB
|
|
| Back to top |
|
 |
|