Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / input from other devices

Author
Message
y8ycgl
14
Years of Service
User Offline
Joined: 4th May 2010
Location:
Posted: 5th May 2010 03:34
i was wondering if there was a way to get input from other devices. for instance an Xbox 360 controller. i would like to make a program that would convert the buttons being pressed into other buttons such as keys. i want this to be able to be applied to any external anything. my idea is that if it detects some sort of input it will register and then ask what you want to "change" or macro it to. after i get the basics down i hope to make it where multiple buttons are able to be used on one. step one though is figuring out how to get and register the input... any ideas?

i do remember back in an old programing class when we were learning about ASCII we made a program that spit out the ASCII value when you hit a key.... perhaps this may work for the first step...
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 6th May 2010 17:27
There is an XBox 360 controller plugin for GDK, try a search, don't know if the source code is available but it might be a good start.

y8ycgl
14
Years of Service
User Offline
Joined: 4th May 2010
Location:
Posted: 6th May 2010 22:32
that's helpful for what i am currently attempting. but what about other devices? i want this to have at least a slight amount of compatibility with any device plugged in that does not register as a mouse or keyboard. i figure that any device that presses a button will send a signal to the computer. what i would like to know is how to detect those signals. i can have the program set up so that it can detect it then set to press something else. for example if it happens to be a 360 controller then maybe the up on the d-pad is the W key.
y8ycgl
14
Years of Service
User Offline
Joined: 4th May 2010
Location:
Posted: 9th May 2010 08:27
surely there must be a way for the DarkGDK to detect input...

Login to post a reply

Server time is: 2024-11-19 23:42:16
Your offset time is: 2024-11-19 23:42:16