Sign in to follow this  
Followers 0
Slythfox

How does _IsPressed work?

3 posts in this topic

#1 ·  Posted (edited)

I have a PS2 (as in playstation2) controller attached to my computer, via USB. I also have a file containing the hex values for all the buttons. What I need is a script that tells me if one of these buttons is being pressed.

I've been searching the forums, trying out bits of codes I find, and attempting to modify it so that it works with my controller, but apparently not. I was wondering if any of you could help me out. I've managed to confuse myself on how to use _IsPressed.

Here's an image of the file with the hex values, in a hex editor... My guess is that each button takes up four of those blocks.

Posted Image

EDIT: Posted this in the wrong support forum... Looks like things have been rearranged since I was last here. So mods, feel free to yell and scream at me for my mistake.

Edited by Slythfox

Share this post


Link to post
Share on other sites



_IsPressed is a UDF so you can check how it works by opening the include file. misc.au3 if I recall right.

Share this post


Link to post
Share on other sites

I had a similar question to this myself, i wanted to program a remote to work with my pc, however, i have no idea how to get the input values from USB controller.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0