• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 305 306 307 308 309 ... 320 Next »

Sending input to Dolphin programmatically
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Sending input to Dolphin programmatically
11-12-2011, 09:37 AM
#1
boogagiga
Unregistered
 
Ok, I'm pretty sure there isnt a post about this, at least I couldn't find it...

I want to be able to send input programmatically to Dolphin to set up simple bots for games that I play. The reason I'm posting this in this forum as opposed to a coding forum will become apparent soon.

First I tried using SendKeys (this is in VB .NET), but Dolphin wasn't catching input, but then I realized that I should be making the program make it look like its actually coming from the hardware, so then I looked up the SendInput API (user32) which is supposed to work on a lower level.

After switching to SendInput API, key strokes were successfully being sent to other applications but Dolphin still was not picking it up.

Is there something special with how Dolphin reads hardware input? Or better yet, is there a simpler way to do this?

Thanks in advance...
Reply
11-12-2011, 09:49 AM
#2
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
You're probably better off directly hacking the ControllerInterface in the Dolphin source or something..
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
11-12-2011, 10:28 AM
#3
HawaiianPunch Offline
Posting Freak
*****
Posts: 878
Threads: 2
Joined: Apr 2011
Just FYI, Dolphin uses DirectInput so you could look up how DirectX does it.
Main Laptop:
Dell XPS 17
i7 2720QM @ 2.2GHz
8GB DDR3 RAM
Nvidia GeForce GT 555M
Windows 7 64-bit
[Image: salsa.gif?noCache=1324617601]
Find
Reply
11-12-2011, 11:13 AM
#4
skid Offline
skidau / skid_au
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,006
Threads: 8
Joined: Aug 2009
Also, UDP Wiimote is another way that Dolphin accepts input via UDP.
Find
Reply
11-12-2011, 02:45 PM
#5
boogagiga
Unregistered
 
Thanks for the replies.

@Hawaiian, the SendInput API is supposed to simluate a DirectX event, which is why I thought it would work, because I knew Dolphin uses DirectX.

@skid Ill see if I can go that route.

@neobrain Ill try that too.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode