|
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
View previous topic :: View next topic |
Author |
Message |
lgnr
Joined: 17 Dec 2009 Posts: 39
|
Posted: Mon Jun 28, 2010 7:11 am Post subject: Simulate keypresses on a lower level |
|
|
I was wondering if there is a way to simulate inputs on a lower level then the method keydb_event or SendMessage from WinAPI.
I made a really simple UDP client for the PSP and a simple server using winsock and WinAPI to simulate keypresses under windows.
The problem is: the presses are only recognized on almost every windows app, as firefox, notepad etc. and just in some emulators, which comunicate directly using WinAPI.
Most games, unfortunately, seems to get keypresses in a lower level (DirectX would be a good guess, generally).
So my question is not really PSP-related, but.. Is there any way to get data from PSP client to be 'understandable' as keyboard events under those applications?
Many thanks in advance. |
|
Back to top |
|
|
lgnr
Joined: 17 Dec 2009 Posts: 39
|
Posted: Mon Jun 28, 2010 12:42 pm Post subject: |
|
|
Nevermind, just got it working. SendInput() works just fine.
Except that you HAVE to especify the wScan with the key code (perhaps using MapVirtualKey()) and you HAVE to set dwFlags to KEYEVENTF_SCANCODE.
Not much of a big deal, but it will not work otherwise. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|