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 


New CE6.5.1 feature - xbox controller support

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Mon May 23, 2016 4:00 pm    Post subject: New CE6.5.1 feature - xbox controller support Reply with quote

Here I made a simple controller input tester.

(you will need CE6.5.1 from http://cheatengine.org/)

You can download this as trainer
https://docs.google.com/uc?export=download&id=0BwMAnE6mjogMUDhVVDlJTXhBZkE



xbox controller test.CT
 Description:

Download
 Filename:  xbox controller test.CT
 Filesize:  5.21 KB
 Downloaded:  792 Time(s)


_________________


Last edited by mgr.inz.Player on Thu May 26, 2016 7:23 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue May 24, 2016 8:30 pm    Post subject: Reply with quote

getXBox360ControllerState()

Thanks for this Feature Request Methos++.

Thanks for Implementation DarkByte.

Thanks For the Interface mgr

What about the Home Button?

_________________
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue May 24, 2016 9:06 pm    Post subject: Reply with quote

No...I did not request this nice feature. Unfortunately, I cannot take credit. Very Happy
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue May 24, 2016 9:18 pm    Post subject: Reply with quote

The home button seems to be reserved for Xbox app/bar on windows. Even the windows gamepad settings doesn't show the home button.
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Tue May 24, 2016 10:28 pm    Post subject: Reply with quote

@ Methos, I really thought you requested that. I remember reading some request like this. I thought about a way to do this with two cheat tables and globalAlloc. Hmm.....

@predprey I use SCPServer now for my PS3 controller and it Defaults the Home Key to Steam, IDK. When I was Using MotionInJoy I Could Map the Home Button Along with SixAxis. Just Wondering why the Home button was excluded.

Still this is nice implementation I can think of Plenty of uses for.

_________________
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue May 24, 2016 10:43 pm    Post subject: Reply with quote

akumakuja28 wrote:
@ Methos, I really thought you requested that. I remember reading some request like this. I thought about a way to do this with two cheat tables and globalAlloc. Hmm.....
-I initially made a request to incorporate hotkey functionality for gaming controllers, but did not specify how to achieve that. Normally, I have to write controller functionality in to my scripts using assembly. Now, with the latest release of CE, people can use LUA, making it a lot easier. However, my initial hope was to simply include input detection for the hotkey text field as clarified here. Either way, these are all great improvements that make CE even better. Very Happy

akumakuja28 wrote:
I use SCPServer now for my PS3 controller and it Defaults the Home Key to Steam, IDK.
-I have the same setup, but my center button opens some kind of x-box help/status indicator. I am using an older version of SCP, as the newer version that I tried had a really bad memory leak.
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue May 24, 2016 11:01 pm    Post subject: Reply with quote

yea, using old SCP too. I think it has to do with SCP riding on top of Window's x360 driver and the x360 driver doesn't support configuring the home button.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Wed May 25, 2016 3:07 am    Post subject: Reply with quote

https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_gamepad.aspx
perhaps a reserved bit, but the home button does not exist according to microsoft

_________________
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
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed May 25, 2016 3:25 am    Post subject: Reply with quote

akumakuja28 wrote:
What about the Home Button?

CE uses XInputGetState function
https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinputgetstate%28v=vs.85%29.aspx


this function returns XINPUT_STATE structure
https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_state%28v=vs.85%29.aspx


And that structure holds:
DWORD dwPacketNumber;
XINPUT_GAMEPAD Gamepad; // another structure


XINPUT_GAMEPAD structure
WORD wButtons;
BYTE bLeftTrigger;
BYTE bRightTrigger;
SHORT sThumbLX;
SHORT sThumbLY;
SHORT sThumbRX;
SHORT sThumbRY;


bLeftTrigger, bRightTrigger - those are LT RT, the value is between 0 and 255.

sThumbLX, sThumbLY, sThumbRX, sThumbRY - analogs, the value is between -32768 and 32767.

wButtons - buttons, there are 14 buttons

Nothing about "Home button"
https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_gamepad%28v=vs.85%29.aspx




Edit:
Damn, I shouldn't make a tea. DB was faster Very Happy

_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu May 26, 2016 7:24 pm    Post subject: Reply with quote

Added controller tester as trainer.
_________________
Back to top
View user's profile Send private message MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Jun 24, 2016 5:51 am    Post subject: Reply with quote

++METHOS wrote:
I am using an older version of SCP, as the newer version that I tried had a really bad memory leak.

From what I see there are few versions released this year. Which one has bug? Does SCP work correctly under win10? I want to test it in the near future (my brother has PS3).

_________________
Back to top
View user's profile Send private message MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Jun 24, 2016 6:03 am    Post subject: Reply with quote

I don't recall which version it was; I've since deleted it. I wouldn't worry too much about it, though, as it may have been an isolated case due to my failure to update all necessary components.

I cannot attest to win10 compatibility, as I'm currently running win7 x64.
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Fri Jun 24, 2016 7:50 am    Post subject: Reply with quote

Tested under Windows 10 Home & SCP v1.7.277.16103 & PS4 controller.
Works great, but cheat engine consuming high amounts of memory (http://prntscr.com/bkgdz4 yes ntoskrnl has memory leak also), calling collectgarbage once a while seems to drop it back to 70-80mb usage and then it increases again.

And didnt notice to any memory leak from the scpserver.

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Jun 26, 2016 8:19 am    Post subject: Reply with quote

Quote:
calling collectgarbage once a while seems to drop it back to 70-80mb usage and then it increases again

You can add
sleep(10)

Just before getXBox360ControllerState() line


Quote:
Tested under Windows 10 Home & SCP v1.7.277.16103 & PS4 controller

Thank you.

_________________
Back to top
View user's profile Send private message MSN Messenger
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