Hello,
thanks to Peter and AK Mongo for pushing this issue.
I take the same approach using LUA to get 4 buttons out of the encoder turns.
I have two questions:
The result in hidscanner.log is for the BU Card is:
Device at "\\?\hid#vid_1dd2&pid_1001#6&9f26302&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}"
Vendor=1DD2, Product=1001 (Version 1.35)
Manufacturer= Leo Bodnar
Product= BU0836X Interface
Serial Number= B17910
The hiddemo.lua starts with:
Vendor=1DD2, Product=1001 (Version 1.35)
Product= BU0836X Interface
Device = 0 -- Multiple devices of the same name need increasing Device numbers.
-- Logging on or off (to see when numbers you are getting)
Logging = true
The hiddemo.log gives me the following error:
********* LUA: "HidDemo" Log [from FSUIPC version 4.703] *********
687684 System time = 28/05/2011 20:43:41, Simulator time = 05:41:56 (03:41Z)
687684 LUA: beginning "F:\FSX\Modules\HidDemo.lua"
687684 *** LUA Error: F:\FSX\Modules\HidDemo.lua:14: malformed number near '1DD2'
687684 LUA: ended "F:\FSX\Modules\HidDemo.lua"
687684 System time = 28/05/2011 20:43:41, Simulator time = 05:41:56 (03:41Z)
********* LUA execution terminated: Log Closed *********
Any suggestion why LUA doe not like the vendor name ???
AK Mongo:
Maybe i can get faster results with your help.
To which inputs on the BU Card is your encoder connected ?
I connected mine to 31 & 32 which is shown in USB game controller programm. When i turn the encoder it gives me signals on ccw 31 & cw 32 as it should.
The result in fsuipc looks different. There it sais ccw 30 & cw 31 ?? Which value did you use in your lua file ? The game controller vaöue or the fsuipc value. Anyway - i tried to edit the lua file for 30 / 31 and also for 31 / 32 with the same result - no additional buttons show up in fsuipc when i turn the encoder fast.
Any idea ?
Cheeres from Germany
Andy