I've been trying something for the past two days and I've exhausted every means I can think of, so maybe someone here has come across this as well.
Basically I want to selectively let my paddle shifters control up/down shift or control my insim app. Both LFS and my app capture the DirectInput device, but I have no way to tell LFS to not listen to the shifters when I don't want it to. My solution was to bind upshift/downshift to keys, let my app exclusively handle the paddle shifters and send key presses to LFS when I want them to mean upshift/downshift.
I figured, i'd use SCH packets to send the keypresses. But apparently no such luck.. While I can send keys for things like changing view, the key presses for controls don't seem to get processed. Don't know if it's a bug, or just not an intended use for SCH... So I tried the win32 API for sendkeys to the active app. Again nothing.
Googling around I thought i found the answer: LFS is using directinput, so it doesn't listen to external keypresses. Using some code I found at gamedev, i created a program that would inject key presses into DirectInput. Worked fine with the sample windows directinput app. But when I tried it with LFS, it never acquired the device to inject.
Anyone have any suggestions? Any pointers to code for creating a virtual device driver so i can pretend to be my own DirectInput device?
cheers,
sdether
Basically I want to selectively let my paddle shifters control up/down shift or control my insim app. Both LFS and my app capture the DirectInput device, but I have no way to tell LFS to not listen to the shifters when I don't want it to. My solution was to bind upshift/downshift to keys, let my app exclusively handle the paddle shifters and send key presses to LFS when I want them to mean upshift/downshift.
I figured, i'd use SCH packets to send the keypresses. But apparently no such luck.. While I can send keys for things like changing view, the key presses for controls don't seem to get processed. Don't know if it's a bug, or just not an intended use for SCH... So I tried the win32 API for sendkeys to the active app. Again nothing.
Googling around I thought i found the answer: LFS is using directinput, so it doesn't listen to external keypresses. Using some code I found at gamedev, i created a program that would inject key presses into DirectInput. Worked fine with the sample windows directinput app. But when I tried it with LFS, it never acquired the device to inject.
Anyone have any suggestions? Any pointers to code for creating a virtual device driver so i can pretend to be my own DirectInput device?
cheers,
sdether