Solved How to press and hold a button for CRS/HDG/ALT rotaries control?
-
Hello, how to make dx buttons/keys generate continuous input for Altimeter, HDG and CRS rotaries? As it is now if I press and hold an assigned button (or a key) for any of those the rotary turns only one notch and stops.
Thanks,
Sabre. -
@SemlerPDX said in How to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre said in How to press and hold a button for CRS/HDG/ALT rotaries control?:
@airtex2019 said in Hot to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre I kinda agree, press-and-hold with a little acceleration factor would be nice.
In meantime there’s a cfg setting
set g_nKnobAccelerationDelta 250 //milliseconds // delay between subsequent keypresses, to rotate knobs 5° instead of 1°
That makes it a little easier to issue repeated key/button presses, to go 5x
Will be useful for my inbound usb encoders box.
Thanks.When I made a two rotary encoder controller for my HSI using an Arduino Micro, I ended up using a special function to determine the speed the rotary is being turned. This way a single turn of one detent would produce 1° but turning it a bit faster produces more like 5-15° per detent, and faster still results in jumps of around 30° per detent.
If you’re looking to make such a controller, feel free to check out how I accomplished this function here on my pastebin if you’re so inclined:
https://pastebin.com/drUnCfKN
…and best wished & good luck!Thanks for sharing SemlerPDX.
Also if somebody gets further interested in the physical controls for your flightsims I’ve opted for these 2 easy and relatively inexpensive panels that have more than enough to fiddle with for now:
8 infinite encoders and DX buttons:
https://www.ebay.com/itm/1926330392418 x2 mode sliders (analogue potentiometers) buttons and 8 rotarries with the stoppers (not sure yet if they’re potentiometers or encoders):
https://www.sweetwater.com/store/detail/nanoKON2bk--korg-nanokontrol2-black?main_web_category_rollup=2/21/726/808&mrkgadid=&mrkgcl=28&mrkgen=gpla&mrkgbflag=1&mrkgcat=drums&percussion&acctid=21700000001645388&dskeywordid=92700072478779155&lid=92700072478779155&ds_s_kwgid=58700007963105270&ds_s_inventory_feed_id=97700000007215323&dsproductgroupid=1720832031358&product_id=nanoKON2bk&prodctry=US&prodlang=en&channel=online&storeid=&device=c&network=u&matchtype=&adpos=largenumber&locationid=9012802&creative=615094225367&targetid=pla-1720832031358&campaignid=17962511191&awsearchcpc=&gclid=CjwKCAjw4c-ZBhAEEiwAZ105RUjqDX5s4X57a6228UWq8e9GtAykg6xOcscLQN21dFKjV-EWSDpmKBoCpYUQAvD_BwE&gclsrc=aw.dsCheers,
Sabre -
I mean the same behavior like when you assign them to POV: you press and hold it and they move continuously.
-
Vjoy used in conjunction with Joystick Gremlin should work.
-
@Steve_U said in Hot to press and hold a button for CRS/HDG/ALT rotaries control?:
Vjoy used in conjunction with Joystick Gremlin should work.
Yes, that’s what I thought. But adding all those extra layers is kinda overshoot. I wish the devs considered adding this functionality to control ALT,CRS,HDG and ANT ELEVATION.
-
@Sabre I kinda agree, press-and-hold with a little acceleration factor would be nice.
In meantime there’s a cfg setting
set g_nKnobAccelerationDelta 250 //milliseconds // delay between subsequent keypresses, to rotate knobs 5° instead of 1°
That makes it a little easier to issue repeated key/button presses, to go 5x
-
@airtex2019 said in Hot to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre I kinda agree, press-and-hold with a little acceleration factor would be nice.
In meantime there’s a cfg setting
set g_nKnobAccelerationDelta 250 //milliseconds // delay between subsequent keypresses, to rotate knobs 5° instead of 1°
That makes it a little easier to issue repeated key/button presses, to go 5x
Will be useful for my inbound usb encoders box.
Thanks. -
@Sabre said in How to press and hold a button for CRS/HDG/ALT rotaries control?:
@airtex2019 said in Hot to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre I kinda agree, press-and-hold with a little acceleration factor would be nice.
In meantime there’s a cfg setting
set g_nKnobAccelerationDelta 250 //milliseconds // delay between subsequent keypresses, to rotate knobs 5° instead of 1°
That makes it a little easier to issue repeated key/button presses, to go 5x
Will be useful for my inbound usb encoders box.
Thanks.When I made a two rotary encoder controller for my HSI using an Arduino Micro, I ended up using a special function to determine the speed the rotary is being turned. This way a single turn of one detent would produce 1° but turning it a bit faster produces more like 5-15° per detent, and faster still results in jumps of around 30° per detent.
If you’re looking to make such a controller, feel free to check out how I accomplished this function here on my pastebin if you’re so inclined:
https://pastebin.com/drUnCfKN
…and best wished & good luck! -
@SemlerPDX said in How to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre said in How to press and hold a button for CRS/HDG/ALT rotaries control?:
@airtex2019 said in Hot to press and hold a button for CRS/HDG/ALT rotaries control?:
@Sabre I kinda agree, press-and-hold with a little acceleration factor would be nice.
In meantime there’s a cfg setting
set g_nKnobAccelerationDelta 250 //milliseconds // delay between subsequent keypresses, to rotate knobs 5° instead of 1°
That makes it a little easier to issue repeated key/button presses, to go 5x
Will be useful for my inbound usb encoders box.
Thanks.When I made a two rotary encoder controller for my HSI using an Arduino Micro, I ended up using a special function to determine the speed the rotary is being turned. This way a single turn of one detent would produce 1° but turning it a bit faster produces more like 5-15° per detent, and faster still results in jumps of around 30° per detent.
If you’re looking to make such a controller, feel free to check out how I accomplished this function here on my pastebin if you’re so inclined:
https://pastebin.com/drUnCfKN
…and best wished & good luck!Thanks for sharing SemlerPDX.
Also if somebody gets further interested in the physical controls for your flightsims I’ve opted for these 2 easy and relatively inexpensive panels that have more than enough to fiddle with for now:
8 infinite encoders and DX buttons:
https://www.ebay.com/itm/1926330392418 x2 mode sliders (analogue potentiometers) buttons and 8 rotarries with the stoppers (not sure yet if they’re potentiometers or encoders):
https://www.sweetwater.com/store/detail/nanoKON2bk--korg-nanokontrol2-black?main_web_category_rollup=2/21/726/808&mrkgadid=&mrkgcl=28&mrkgen=gpla&mrkgbflag=1&mrkgcat=drums&percussion&acctid=21700000001645388&dskeywordid=92700072478779155&lid=92700072478779155&ds_s_kwgid=58700007963105270&ds_s_inventory_feed_id=97700000007215323&dsproductgroupid=1720832031358&product_id=nanoKON2bk&prodctry=US&prodlang=en&channel=online&storeid=&device=c&network=u&matchtype=&adpos=largenumber&locationid=9012802&creative=615094225367&targetid=pla-1720832031358&campaignid=17962511191&awsearchcpc=&gclid=CjwKCAjw4c-ZBhAEEiwAZ105RUjqDX5s4X57a6228UWq8e9GtAykg6xOcscLQN21dFKjV-EWSDpmKBoCpYUQAvD_BwE&gclsrc=aw.dsCheers,
Sabre -
Please let me know if I should mark the topic Resolved now?
-