Apar Posted October 22, 2021 Posted October 22, 2021 Hi guys, Do you know if its possible to make a 2-signal 3-way toggle on-off-on to work like on-on-on or button1-button2-button3?
Sokol1_br Posted October 22, 2021 Posted October 22, 2021 Without physical modification inside an ON-OFF-ON switch (what is tricky, se attached file) the way to make they work as ON-ON-ON is though keymaper software with "key mapped on release", like RSMapper, JoyToKey, Xpadder, Joystick Gremlin. For DCS planes you can edit LUA controls adding function for "0 state" of switch, topic about fixed in this forum. DIY ON-ON-ON Switch.zip 1
Apar Posted October 24, 2021 Author Posted October 24, 2021 On 10/23/2021 at 1:49 AM, Sokol1_br said: Without physical modification inside an ON-OFF-ON switch (what is tricky, se attached file) the way to make they work as ON-ON-ON is though keymaper software with "key mapped on release", like RSMapper, JoyToKey, Xpadder, Joystick Gremlin. For DCS planes you can edit LUA controls adding function for "0 state" of switch, topic about fixed in this forum. DIY ON-ON-ON Switch.zip 675.31 kB · 11 downloads oh, i think i have also 3 pin one.. So no choice but to have it mapped to Gremlin is it? Have you tried it in gremlin? mapping 1 vjoy input from two phyiscal button output/condition?
Sokol1_br Posted October 25, 2021 Posted October 25, 2021 (edited) Sorry, I can't help with Joystick Gremlin, too "weight and complicated" for my needs. But, taking as example SVMapper, how set a ON-OFF-ON switch, that press two DX buttons in ON positions and none in OFF - DX button # 1 and button # 2 in the example; for send 3 different keypress: A, B, C, working as ON-ON-ON switch for games. Use the same principle in RSMapper, JoyToKey, Joystick Gremlin, XPadder. Edited October 25, 2021 by Sokol1_br
Munkwolf Posted October 25, 2021 Posted October 25, 2021 On 10/24/2021 at 12:41 AM, Apar said: oh, i think i have also 3 pin one.. So no choice but to have it mapped to Gremlin is it? Have you tried it in gremlin? mapping 1 vjoy input from two phyiscal button output/condition? Here's how I've got it setup in gremlin, using macros. Buttons 27 and 28 are the up/down buttons for the LASTE 3-way switch on the WH throttle. Button 125 on virtual device is what I use for the middle position. Same macro is on buttons 27 and 28 as a pulse event. A key part is having it activate when the button is released, in the Macro event Condition tab (ie, when button 27 is released vjoy button 125 is pushed for 0.1s) If you want the middle position to be 'held', using above screens as a reference, you could move the release event to a 2nd macro that activates when the button is pressed (and remove the pause event). Also, depending on what modules you're flying, I've got a bunch of LUA edits in the keybinds project to add 'else' versions of controls to modules if they don't exist. Example from Huey: {down = device_commands.Button_9, up = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYS, value_down = 1, value_up = 0, name = _('Gun Selector Switch Right else All (2-way Switch)'), category = {_('Armament System'), _('Custom')}}, {down = device_commands.Button_9, up = device_commands.Button_9, cockpit_device_id = devices.WEAPON_SYS, value_down = -1, value_up = 0, name = _('Gun Selector Switch Left else All (2-way Switch)'), category = {_('Armament System'), _('Custom')}}, https://github.com/Munkwolf/dcs-community-keybinds 1
void68 Posted June 4, 2022 Posted June 4, 2022 (edited) On 10/22/2021 at 7:49 PM, Sokol1_br said: For DCS planes you can edit LUA controls adding function for "0 state" of switch, topic about fixed in this forum. Any idea where this topic is? I found nothing so far. I can't get SV Mapper to work. It just sits there and I can't input any keys. I highlight the row, enter a key, nothing - I double click the button, it changes to yellow, I enter a key, nothing - I right click, no popup, nothing. In my frustration I hit like mad on my keyboard and suddenly there was a single entry. I couldn't reproduce, nothing. Started as admin, nothing. Solution: edit: one night later... double click the entry, it turn yellow, now mark the "key pressed" field, no mark, no indication that you just chose that field. Hit a key and voilà, there it is. Seems to work. Edited June 5, 2022 by void68
Sokol1_br Posted June 8, 2022 Posted June 8, 2022 On 6/4/2022 at 2:38 PM, void68 said: Quote For DCS planes you can edit LUA controls adding function for "0 state" of switch, topic about fixed in this forum. Any idea where this topic is? I found nothing so far. Just in case, fixed on top of Input Devices (this forum section)
void68 Posted June 21, 2022 Posted June 21, 2022 Thank you. I currently use RSMapper and it works really fine.
Recommended Posts