Jump to content

How does _IsPressed work?


Slythfox
 Share

Recommended Posts

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
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...