Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

Quick question.

I use the virtual joystick buttons to pass triggers from my program via widefs to fsuipc on the sim pc. Now I noticed that when I use a key like "m" it works perfect. When I use "shift+m" however .. 50% of the times it misses the shift and gives me an "m" !!

Do I do something wrong ? Or is there a way around this ? Cuz I do not want this to be happening !

Posted

I use the virtual joystick buttons to pass triggers from my program via widefs to fsuipc on the sim pc. Now I noticed that when I use a key like "m" it works perfect. When I use "shift+m" however .. 50% of the times it misses the shift and gives me an "m" !!

I take it that you are programming the button normally, in FSUIPC's Joystick page?

Of course, there is absolutely no difference in that whether the button is local to FS or via WideFS, or whether it's a "virtual" button or a real one. So the question is, are you losing Shift events on your FS PC when using something local too?

All FSUIPC does is use the Windows SendInput API to send the programmed sequence to FS. What triggers it to do this is completely irrelevant.

The SendInput API generates the standard WM_KEYDOWN/KEYUP sequences. You can, of course, also send those yourself, from your program, using the facilities in offsets 3200-320B inclusive.

What are you trying to do, BTW? Keyboard simulation is not the ideal and most precise way to control things normally.

Regards,

Pete

Posted

Well what I'm doing is quite simple.

I have Scott's Photon interface without his software. He is using the offset to pass keystrokes via widefs. I am using the joystick button offsets as you suggested me before.

I do program the output on the Fsuipc "button" page. Remember the issue I had within fs9 and not in fs8 with the thing going wierd when I go to the "button" page.

I do not know if I am losing Shift events on the FS pc when doing something local. I have never experianced any problem with this. Or before with my Hagstrom, no problem then either.

What I think now that is going wrong somewhere is that the shift key is pressed but sometimes is not released .. might that be the problem ?

Posted

What I think now that is going wrong somewhere is that the shift key is pressed but sometimes is not released .. might that be the problem ?

If that were so you'd get shifted m (i.e. M) all the time, not the unshifted m. Also keys from the normal keyboard will be shifted too -- all thse keyboard messages go via the same queue in Windows.

Do you have the Microsoft spyxx program? If so you can use it to monitor keyboard messages in the main FS window ("FS98MAIN") and see exactly what is happening.

But it is not likely to be anything to do with the virtual buttons or WideFS operation -- the programming of keystrokes in FSUIPC is exactly the same no matter what the trigger.

What is this "m" or "M" being used for? How are you actually detecting the difference?

Regards,

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.