Hi, thanks for this great app !
My home cockpit uses 2 leoBodnar BU0836A devices but i have problems to assign logical device name.
In response to "lmc_print_devices()" command i get :
<unassigned> : BU0836A Interface [0] : game
<unassigned> : BU0836A Interface [0] : game
<unassigned> : \\?\HID#VID_1C4F&PID_0002&MI_00#9&826BD90&0&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD} [327833] : keyboard
Problem is i cant tell how to identify each BU0836A as both shows same id.
So when i try to assign devices using "lmc_device_set_name" i can only assign logical name to the first one
so if i print devices again i get :
<unassigned> : BU0836A Interface [0] : game
LB1 : BU0836A Interface [0] : game
KBD1 : \\?\HID#VID_1C4F&PID_0002&MI_00#9&826BD90&0&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD} [327833] : keyboard
Is this a bug or i am missing something ?. Same setup worked ok with Hidmacros.
Thanks
BU0836A HID devices
Re: BU0836A HID devices
Interesting
I'll have a look if device iteration can provide more details to distinguish 2 devices with the same name.
Personally I use only 1 Leo's devices but have another one ready, not connected.
So I'll test with the second and figure it out somehow.
Feel free to remind me in a few days (or week)
I'll have a look if device iteration can provide more details to distinguish 2 devices with the same name.
Personally I use only 1 Leo's devices but have another one ready, not connected.
So I'll test with the second and figure it out somehow.
Feel free to remind me in a few days (or week)
Petr Medek
LUAmacros author
LUAmacros author
Re: BU0836A HID devices
Thanks for your support. I will do.
Regards
Regards
Re: BU0836A HID devices
Download new release (0.1.0.239, same link http://www.hidmacros.eu/luamacros.zip).
Now game device should include some windows GUID number - you should be able to distinguish 2 different borads.
But note the GUID may change if you plug the device to different USB port.
Please let me know if it solves your problem I didn't test with 2 boards.
Now game device should include some windows GUID number - you should be able to distinguish 2 different borads.
But note the GUID may change if you plug the device to different USB port.
Please let me know if it solves your problem I didn't test with 2 boards.
Petr Medek
LUAmacros author
LUAmacros author
Re: BU0836A HID devices
Thank you for your time Petr, tonight i test, tomorrow i report results.
Regards
Regards
Re: BU0836A HID devices
Worked ! thanks again.
Just one more thing ... the HAT buttons are not being detected by
lmc_set_handler('LB', function(button, direction)
print('callback : ' .. button .. ', direction: ' .. direction)
end)
is something inherent to the BU0836 or LuaMAcros ?, would like to have it working as i have them already wired to some switches in my cpckpit.
Regards
Just one more thing ... the HAT buttons are not being detected by
lmc_set_handler('LB', function(button, direction)
print('callback : ' .. button .. ', direction: ' .. direction)
end)
is something inherent to the BU0836 or LuaMAcros ?, would like to have it working as i have them already wired to some switches in my cpckpit.
Regards
Re: BU0836A HID devices
Hmm, I think now I detect just buttons and HAT switches will be part of different DirectX data structure.
So I would need to modify this code to read also HATs.
Maybe... in the future... maybe near fututre... I'll have a look... who knows
So I would need to modify this code to read also HATs.
Maybe... in the future... maybe near fututre... I'll have a look... who knows
Petr Medek
LUAmacros author
LUAmacros author