GetAsyncKeyState Question

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
User avatar
QuasiMorto
Cheater
Cheater
Posts: 39
Joined: Tue Jul 25, 2017 11:04 am
Reputation: 5

GetAsyncKeyState Question

Post by QuasiMorto »

Code: Select all

pushad
push 02 //Right mouse button
call GetAsyncKeyState
Sorry if this has been asked 1000 times, but Is it possible to change the mouse button to RT xbox controller?

TimFun13
Expert Cheater
Expert Cheater
Posts: 1353
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 7

Re: GetAsyncKeyState Question

Post by TimFun13 »

QuasiMorto wrote:
Wed Sep 26, 2018 9:44 pm

Code: Select all

pushad
push 02 //Right mouse button
call GetAsyncKeyState
Sorry if this has been asked 1000 times, but Is it possible to change the mouse button to RT xbox controller?
You have to use a different function for the xinput, XInputGetState.
[Link]

But CE has getXBox360ControllerState, but it's Lua.
[Link]

User avatar
QuasiMorto
Cheater
Cheater
Posts: 39
Joined: Tue Jul 25, 2017 11:04 am
Reputation: 5

Re: GetAsyncKeyState Question

Post by QuasiMorto »

Ouch.. That's getting complicated by the minute, the GetAsyncKeyState returns an int and the xinputgestate returns different values. I just wanted to switch this code so I dont have to play with the controler in one hand the mouse on the other hahaha

TimFun13
Expert Cheater
Expert Cheater
Posts: 1353
Joined: Fri Mar 03, 2017 12:31 am
Reputation: 7

Re: GetAsyncKeyState Question

Post by TimFun13 »

QuasiMorto wrote:
Wed Sep 26, 2018 11:37 pm
Ouch.. That's getting complicated by the minute, the GetAsyncKeyState returns an int and the xinputgestate returns different values. I just wanted to switch this code so I dont have to play with the controler in one hand the mouse on the other hahaha
Well, you can't set the controller state with CE, but you could use a thread or timer to read the controller state and set the key state.
[Link]
[Link]
[Link]
[Link]

Post Reply

Who is online

Users browsing this forum: No registered users