Jump to content

Recommended Posts

Posted

Just like any other switch, except there are two commands for landing gear up-- LAlt +G and gear down-- LCtl + G.  If you can make any other key stroke work with joytokey, there should not be a problem with the landing gear. In joy to key find out which joystick your Throttle is, and then start flipping the switch the key will light up, find the one when you flip the switch in the other direction. Pick your button double click it, and it will take you to the keyboard emulation page there are four windows, the top one should already be yellow, right click in the window, choose LAlt, in the next window down right click and select G, at the bottom there is a "Comment" window, type in what you have the button doing.  Go back and flip the switch in the other direction, double click to the emulation screen and repeat the process with LCtl + G.  If your switch does not make the joy to key flash for the keystroke, then nothing I have told you will work.  Those buttons must flash or JoytoKey does not see your joystick. In the GUI the tabs running across the top, there is a tab called Options, click it and there is a box "Show/Hide buttons, make sure you select "Show all Axis (8-way + POV x 4) that ensures you see all the buttons for all of your controllers/Joysticks.  There are plenty of tutorials on youtube on how to set it up. 

 

Good Luck duder!

Hoss

Posted

Hi Hoss, many thanks for your reply! I will try asap! On my toggle switch there is OFF position also, do you think J2K recognise this position? In this case I will assigne two combination keys to move the landing gear (Lalt+G and LCtrl+G as per your suggestion).

Ciao!

 

M

Posted (edited)

Joytokey sees only two positions, and not the center position. But, going in one direction (the press function) you can make the switch do keystroke "A" and when you return it to the center, or the release direction you can program it to do keystroke "B". You can repeat all that going in the other direction. Joytokey is pretty good and very simple. It's to bad it does not have a good "Event tester" like TARGET has. So I suggest to test your programming you use note pad and simple key strokes i.e. A, B, C,  multiple keys don't register LAlt + A. Once you know it works... press/release then you can replace the simple key strokes with multiple press.

 

Good luck

Hoss

Edited by 352nd_Hoss
Posted

Hi Hoss, yesterday I managed to works landing gear switch. I assigned differents keys for up and down gear, in specific X and Z keys, and in the game I not use "gear up/down" mode with G key, I have cancelled its function. I use "Gear UP" and "gear down" mode to move the gear with X and Z keys assigned to these functions.

In JoyToKey I assigned "release X" for gear down and "press Z" to gear up, and it seems to works fine....at least until yesterday....?

The only issue is that when the gear is up ("press Z" function) I can't use the keyboard. Usually I start the mission taking off from the runway, gear down and working keyboard. When I rise up the gear, if I wish to abandon the mission when I am in flight, I can't do it because keyboard doesn't works! I must to lower the gear ("release X" function) and normally press "esc" key to esc game. Obviously after landing this not happen because the gear is down.

There is a way to solve this issue, please?

Ciao!

 

M

Posted (edited)

Glad to hear you are having some success.  It sounds like your key press is being held on press with no release function to stop it once your flaps are up or down. From what I can understand you have a three position switch

 

Back..................... Middle........................ Forward..... 

flaps ↓                 Neutral                        Flaps ↑           You program X for down and Z for up... with joy to key if you leave it in the forward or back position it's going to keep sending the X/Z key press, you need to return it to center, where there isn't a key press programmed.  If the forward or Back position is stationary it will keep sending what ever you programmed.  If the Forward is momentary i.e. you push it and it springs back you don't have to worry about repeating keystroke, but you will have to hold it for as long as it takes to raise or lower your flaps. On my systems the forward is momentary and backwards is a mechanically constant hold/latch until I move it back to center.  In Joy to key you can have it do one function/keystroke when moving it in one direction and another when you move it back... Press/Release

your GUI has the page in the spoiler, "Keyboard (Multi) where the good stuff gets done in J2K.  But if you leave the switch toggled while the flap operation is being performed and then move it to the middle position the X/Z keypress will stop and you do not need the press release release function in the screenshot.  for X on the press and Z on the release.  This should get you sorted out, play with it for awhile and get the hang of it.  As stated before J2K has no event tester so it's bit more difficult to get a good picture of what's going on, difficult but not impossible. And last but not least, remember the Mustang has incremental flaps, 10° at a keypress, so you will have to toggle it back and forth to operate her flaps.

 

Cheers

Hoss

Spoiler

292130859_Press-Releasefunctions.thumb.png.a718d921c0caf2944ccb5bb049cb7d54.png

 

Edited by 352nd_Hoss
Posted (edited)
On 8/31/2021 at 2:42 PM, Marvel said:

Hi guys, I tried to set a NKK toggle switch (https://www.mouser.it/ProductDetail/NKK-Switches/S1AL?qs=ZEIBj%2FxFsqVYnaEhK5B06A%3D%3D)  with JoyToKey and IL-2GB, but I can't make it work as a landing gear switch; I use a Leobodnar BU0836X card too.

Does anyone know how to set it on JoyToKey for this function?

 

Instead use JoyTokey for press, eg. LAlt+G (gear down) and LCtrl+G (gear up) have you tried just ad the DX buttons of BU0836X in game controls, eg.

Button #31 gear down, button 32 gear up?

 

As alternative to JoyToKey can try RSMapper.

Edited by Sokol1
Posted

Thanks for your replies guys!

 

@352nd_Hoss: nope, I have a two position switch, this one https://www.nkkswitches.eu/products/Toggles/Toggles S/S1AL/ and the function selected is per as your shows.

Usually I fly with Me.109 and I have a rocker switch (https://www.amazon.it/gp/product/B07VXS7Q5S/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1) on the throttle to operate flaps and it works fine. My issue is with landing gear. In picture attached you can see the mapping; disregard Shift+G and Ctrl+G, now I have X and Z as assigned keys. I think in J2K there is a function that stop the input after a certain time but I can't understand where it is....?

 

@Sokol1 no possible to assign two button, my switch is only ON-OFF. RSMapper is interesting, the video refers to DCS and X Plane 11. It works for IL-2GB also? Have you tried it?

 

Ciao!

 

M

J2K.jpg

Posted (edited)

OK, I have understand that are On-Off-On.

Yes, RSMapper work with any game that use DirectX controllers.

 

Quote

The only issue is that when the gear is up ("press Z" function) I can't use the keyboard

 

I can replicate your problem with JoyToKey, when the keypress for ON - here Landing Gear down, key J (just because has no previous use) is sent, the game don't accept ESC key. Keypress for OFF - U (too don't used) work OK.

 

Try the same with RSMapper and all went OK, landing gear work as expected and can use ESC when ON is send the keypress (J).

 

I like JoyToKey, but for Bo'X' is much "hit an miss" and don't work well for combos, e.g LAlt+G.  Game see LAlt+G and G.

 

BTW - With RSMapper can use combos, eg.

LShift+G = gear up

LCtrl+G = gear down

 

777641922_RSMapper-BoX.jpg.e78c0bee4fe6c1341002f462bc138d27.jpg

 

 

 

 

 

 

 

 

 

Edited by Sokol1
Posted
On 9/4/2021 at 3:33 AM, Sokol1 said:

OK, I have understand that are On-Off-On.

 

I Sokol1, nope, only ON-OFF, as per picture (NKK S1AL). No central position.

 

And yep, next days I will try RSMapper as per your instructions. I'm curious to see how it works. I will report the results.

 

Many thanks, ciao!

 

M

 

shopping.png

Posted

@Sokol1 Hi, I am starting to map buttons on RSMapper, but it doesn't recognise the 5 axis of BU0836X . It is normal? It maps buttons only?

 

Ciao!

 

M

Posted
5 hours ago, Marvel said:

@Sokol1 Hi, I am starting to map buttons on RSMapper, but it doesn't recognise the 5 axis of BU0836X . It is normal? It maps buttons only?

 

Yes, RSMapper is for program buttons only.  Axes programming is in  "to do" list:

 

 

FUTURE ROADMAP: 

- Rewrite the way buttons are rendered (flickering, long time to draw. bad code in general)

- New way to assign keys to device button (keypress, not a dropdown selection)

- Support for Saitek/Logitech flight panels (big one!)

- Axis support for mapping (big one!)

- Profile changes on keyboard key press (low priority)

 

If you need program axes, try if Xpadder don't cause the "ESC" issue, are a test version available, register cost ~$10 and allow program axes in bands (2 or 3 don't remember). Or Joystick Gremlin, that require previous installation o vJoy.

Posted

Hi Sokol1, ok, I will wait for next improvements and meanwhile I try RSMapper.

Ciao!

 

M

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...