Valeryo Posted November 1, 2013 Author Report Posted November 1, 2013 Oh, yes! Now I saw changes! 51013 Button changed: bRef=0, Joy=1 (Y), Btn=18, Pressed51013 [buttons.Learjet 45 FP] 3=PY,18,C65759,051013 [DNSCAN] J0.1, B18, bRes=2, Flags=X01, Value=65759[0x100DF], Param=0[0x0], TimeNow=122601, TimeLast=11068251013 FS Control Sent: Ctrl=65759, Param=051028 Monitor IPC:03C4 (U32) = 0x4000059889 Button changed: bRef=0, Joy=1 (Y), Btn=18, Released59905 Monitor IPC:03C4 (U32) = 0x063321 Memory in use: 1159Mb, Avail=2937Mb68220 Button changed: bRef=0, Joy=2 (G), Btn=23, Pressed68220 [buttons.Learjet 45 FP] 25=PG,23,C66059,068220 [DNSCAN] J0.2, B23, bRes=2, Flags=X01, Value=66059[0x1020B], Param=0[0x0], TimeNow=139808, TimeLast=12260168220 FS Control Sent: Ctrl=66059, Param=068220 Monitor IPC:03C8 (U32) = 0x80000077361 Button changed: bRef=0, Joy=2 (G), Btn=23, Released77361 [buttons.Learjet 45 FP] 56=UG,23,C66060,077361 [uPSCAN:] J0.2, B23, bRes=1, Flags=X03, Value=66060[0x1020C], Param=0[0x0], TimeNow=148949, TimeLast=13980877361 FS Control Sent: Ctrl=66060, Param=077361 Monitor IPC:03C8 (U32) = 0x089405 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y89405 Sim stopped: average frame rate for last 52 secs = 28.9 fps95957 System time = 02/11/2013 00:54:46, Simulator time = 00:54:05 (18:54Z)95957 *** FSUIPC log file being closed
Pete Dowson Posted November 1, 2013 Report Posted November 1, 2013 Oh, yes! Now I saw changes! Good! There was a silly typo in the code which appears to do this: Joysticks 0-3 all wrote to 03C0. Joysticks 4-7 all wrote to 03C4 Joysticks 8-11 all wrote to 03C8 Joysticks 12-15 all wrote to 03CC What was misleading, and took me a while to understand, was that all scanned joysticks are scanned in one loop, so the last one only in each group of 4 gets its buttons recorded. This made your Joy #2 visible, incorrectly, in 03C0, overwriting any button indications from #0 and #1. It also applied to FSUIPC3 and has been broken in both versions since April 2011. Seems no one ever used it till now! I'll upload the fixed modules to the Download Links subforum now. Thanks for testing! Regards Pete
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now