Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Trying to retrieve input from XInput but fails to compile

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 513

PostPosted: 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:  2852 Time(s)

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


Back to top
View user's profile Send private message
C1aref5
How do I cheat?
Reputation: 0

Joined: 20 Feb 2025
Posts: 5

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

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
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 513

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

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


it only triggers on XInputGetState(& /*HERE*/)
Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 513

PostPosted: Fri Feb 13, 2026 12:36 am    Post subject: Reply with quote

Any help is appreciated
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

Joined: 09 May 2003
Posts: 25875
Location: The netherlands

PostPosted: Fri Feb 13, 2026 5:53 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 513

PostPosted: Fri Feb 13, 2026 6:48 am    Post subject: Reply with quote

It works, thanks DB
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
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

CE Wiki   IRC (#CEF)   Twitter
Third party websites