Slythfox Posted February 21, 2007 Share Posted February 21, 2007 (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.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 February 21, 2007 by Slythfox Link to comment Share on other sites More sharing options...
Uten Posted February 23, 2007 Share Posted February 23, 2007 _IsPressed is a UDF so you can check how it works by opening the include file. misc.au3 if I recall right. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Paulie Posted February 24, 2007 Share Posted February 24, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now