#78005 - usch_ghost - Tue Apr 04, 2006 2:30 pm
Hello there^^
I?m somewhat new to gba programming and i wanted to know if it would be possible to write some code that lets you use the gba as a pc Gamecontroller
(i.e. for visualboy advance) using the XBOO cable.
Thx in advance...
#78009 - tepples - Tue Apr 04, 2006 3:16 pm
It would be possible. Write a program that sends a joypad slave over the cable, reads the current state of the GBA buttons, and then sends key-up and key-down messages to the frontmost window.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#78017 - usch_ghost - Tue Apr 04, 2006 4:37 pm
Quote: |
It would be possible. Write a program that sends a joypad slave over the cable, reads the current state of the GBA buttons, and then sends key-up and key-down messages to the frontmost window. |
okay but how can i send the button state of the gba to the master program on my pc?
#78071 - keldon - Tue Apr 04, 2006 11:30 pm
Through serial port.
#78083 - sgeos - Wed Apr 05, 2006 1:25 am
Read the joypad register every frame and throw that information through the link cable to the PC.
-Brendan
#78137 - chishm - Wed Apr 05, 2006 11:05 am
Whoa, I'm having an incredible sense of d?j? vu about this topic.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com
#78139 - usch_ghost - Wed Apr 05, 2006 11:59 am
thx for all your replys...
but could you nice guys say me if there exists any docs or tutorials about
1.reiciving data from the serialport (I googled for this but havent found any useful... )
2.send windows messaages from one app to another....
I hope i don?t anoy you too much but anyway thx in advance again^^
#78140 - keldon - Wed Apr 05, 2006 12:10 pm
If you just want to play your games with a joypad, try the playstation->usb adapter from game.co.uk . Maybe there are others.
I know docs for 1 and 2, but they are all for assembler. If you are going to work in assembler check out the iczelion tutorials and rosasm
#78180 - usch_ghost - Wed Apr 05, 2006 8:04 pm
Quote: |
If you just want to play your games with a joypad, try the playstation->usb adapter from game.co.uk |
playing my games is not the reason that i want to do this but i want to learn something while coding and have fun to while making this....
cout someone maybe just give me some example code for sending i.e. the WM_KEYDOWN message from an console application to the app that is in front of the desktop?
I think that would realy help me to beginn my project^^
Or is this task somewhat more complicated than I?m imaging??
#78353 - Natso - Fri Apr 07, 2006 12:28 am
yeah... try and first make a multiplayer gba game<even if its just displaying a synchronized number on both screens> just to get the hang of the GBA protocol. To hook the gba up to the PC, unless I'm terribly overlooking something, you will have to have a cord to hook the GBA to the computer via a USB/GBA link and create a program on the computer that correctly communicates with the GBA. Then just make a 1-way link where the GBA sends the KEYS<assuming this is what you call it> register over the link, and have the computer program virtually press those keys. Sorry I can't supply code, but I myself am also learning how to do the linking. However I can verify that all I have said is tru.
_________________
I'm a bomb technitian. If you see me running, try to keep up ;)