Cheat Engine :: View topic - Trying to retrieve input from XInput but fails to compile

Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine


View previous topic :: View next topic
Author Message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

Post Posted: Sun Oct 12, 2025 11:54 am Post subject: Trying to retrieve input from XInput but fails to compile Reply with quote

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))



&#1047;&#1085;&#1110;&#1084;&#1086;&#1082; &#1077;&#1082;&#1088;&#1072;&#1085;&#1072; 2025年10月12日 205114.png
Description:
Filesize: 5.79 KB
Viewed: 1017 Time(s)

&#1047;&#1085;&#1110;&#1084;&#1086;&#1082; &#1077;&#1082;&#1088;&#1072;&#1085;&#1072; 2025年10月12日 205114.png


Back to top C1aref5
Cheater
Reputation: 0

Joined: 20 Feb 2025
Posts: 29

Post Posted: Thu Oct 23, 2025 3:38 pm Post subject: Reply with quote

Make sure you致e zero-initialized your `XINPUT_STATE` structure before passing it:
Back to top Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 510

Post Posted: Thu Oct 23, 2025 9:02 pm Post subject: Reply with quote

C1aref5 wrote:
Make sure you致e zero-initialized your `XINPUT_STATE` structure before passing it:


it only triggers on XInputGetState(& /*HERE*/)
Back to top
Display posts from previous:
Page 1 of 1


Jump to:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

AltStyle によって変換されたページ (->オリジナル) /