PoKeys 57U - output DX presses?
-
@Atlas said in PoKeys 57U - output DX presses?:
I’m not exactly sure what you’re asking here.
“Button 1” is essentially DX input 1. There are 32 “Buttons” total as for some reason, PoKeys only does 32 DX inputs.
“Pin 1” is the first input on your PoKeys board which in your case you’ve mapped to Encoder A1. There are 55 pins total (plus some reserve and matrix input).Therefore, you can map Button 1 as Pin 30, Button 2 as Pin 12, Button 3 as Pin 6, and so on.
In my screenshot, I’ve already mapped Button 1 to Pin 1, Button 2 to Pin 2, and so on. In your case, you’ve not done so yet, so essentially your DX input is “disabled”. When you map Button 1 to Pin 1, you may need to clear that key mapping (; and ') from those pins.Hope that helps!
Ok, getting closer and maybe a pic of where I am and what I see when I try using the Joystick DX setup will help clarify. To be clear, all these switches are sending the keypresses defined properly at this point.
I have a total of three 3-way toggles (only PITCH uses all three positions) and two dials, as seen in the picture below… I did this several years ago by hit and miss IIRC so really not sure of the logic of it.
The leftmost [GEAR] toggle is set on Pins #9 & #11 (Triggered Input) and sends a “G” for both toggle positions (both set as “Key Up”).
The “ROLL” HDG SEL is on Pin #7 (Triggered Input) and sends a “CTRL-Y” (Key Up)
The “ROLL” STRG SEL is on Pin #8 (Triggered Input) and sends a “CTRL-U” (Key Up)BOTH The “PITCH” *ALT HOLD" and the “A\P OFF” are on Pin #3 (Triggered Input) and sends a “CTRL-P” (Key Up) for “ATT HOLD” & “CTRL-O” (Key Down) for A\P OFF
BOTH The “PITCH” *ATT HOLD" and the “A\P OFF” are on Pin #4 (Triggered Input) and sends a “CTRL-P” (Key Up) for “ATT HOLD” & “CTRL-O” (Key Down) for A\P OFF
HDG Dial is on Pins #1 and #2 (Digital Input) and set as Encoder, Pin1 is Channel A, Pin2 is Channel B. Pin1 sends a “;”, Pin2 sends a “'”
CRS Dial is on Pins #5 and #6 (Digital Input - Invert Pin) and set as Encoder, Pin5 is Channel A, Pin6 is Channel B. Pin5 sends a CTRL-', Pin6 sends a CTRL-; .
Now, when I (after saving my working setup) go in and “clean out” all Key Mapping settings I leave all other settings in place, i.e. Digital Input\Invert Pin\and Encoder settings.
Open Joystick Settings, leave “X-Rotation” selected as an Axis, then set:
Button 1 - pin 1 to Direct Mapping - Pin 1 Digital Input
Button 2 - pin 2 to Direct Mapping - Pin 2 Digital Input
Button 3 - pin 3 to Direct Mapping - Pin 3 Digital Input
Button 4 - pin 4 to Direct Mapping - Pin 4 Digital Input
Button 5 - pin 5 to Direct Mapping - Pin 5 Digital Input
Button 6 - pin 6 to Direct Mapping - Pin 6 Digital Input
Button 7 - pin 7 to Direct Mapping - Pin 7 Digital Input
Button 8 - pin 8 to Direct Mapping - Pin 8 Digital Input
Button 9 - pin 9 to Direct Mapping - Pin 9 Digital Input
Button 10 - disabled \ inactive
Button 11 - pin 11 to Direct Mapping - Pin 11 Digital Input
Buttons 12 - 32 - disabled \ inactiveThe HDG and CRS dials work perfectly, HDG puts out DX1 CCW\ DX2 CW, CRS puts out DX5 CCW\ DX6 CW. They appear in my “Virtual Joystick” column in BMS Alt launcher.
The issue is the 3-way toggles only output when returning to the “center” position of the toggle and the DX# changes depending if I toggle down from the top or up from the bottom. In essence its the opposite effect of what I need, except for the PITCH switch I do need the center but am only getting two outputs when I need all 3…
GEAR Toggle - Bottom to center gives DX11, Top down to center gives DX9
ROLL Toggle - Bottom to center gives DX8, Top down to center gives DX7
PITCH Toggle - Bottom to center gives DX3, Top down to center gives DX4Hopefully this better clarifies what i’m trying to accomplish, thanks for any assistance!
-
You can also rename your PoKeys devices. Here you can see EXTLIGHT, UHF, TEST, and CMDS are my 4 PoKeys boards. You may want to rename your board if you’re using more than one, otherwise it can get confusing. If you’re just using one, then it’s no big deal.
Here I’ve connected a 5th PoKeys board called SPARE. As you can see there are no DX inputs or anything on it, but it still shows up in the AL.
@Icer said in PoKeys 57U - output DX presses?:
The leftmost [GEAR] toggle is set on Pins #9 & #11 (Triggered Input) and sends a “G” for both toggle positions (both set as “Key Up”).
The “ROLL” HDG SEL is on Pin #7 (Triggered Input) and sends a “CTRL-Y” (Key Up)
The “ROLL” STRG SEL is on Pin #8 (Triggered Input) and sends a “CTRL-U” (Key Up)You only need to “send” anything if the pin is NOT mapped as DX. This is true for switches/buttons/encoders so long as you’ve mapped them as DX inputs.
GEAR Toggle - Bottom to center gives DX11, Top down to center gives DX9
ROLL Toggle - Bottom to center gives DX8, Top down to center gives DX7
PITCH Toggle - Bottom to center gives DX3, Top down to center gives DX4Hopefully this better clarifies what i’m trying to accomplish, thanks for any assistance!
Again, I’m not 100% clear on what you’re saying, but let me show you how I’ve mapped some of my switches and hopefully clear some things up…
So pin 46 and 47 are mapped to the Master Arm 3-way switch but I’ve gone over the 32 DX inputs for this board so they are mapped to callbacks so they “send” a keystroke when they are activated. Note the triggered input and invert pin setting.
Pin 24 and 25 are mapped to the Landing Lights 3-way switch and are DX inputs (as Button 24 and Button 25 respectively) so they “send” nothing. Note the direct input and invert pin setting. In the AL, I make use of the “press” and “release” functions.
@Icer said in PoKeys 57U - output DX presses?:
The issue is the 3-way toggles only output in the “center” position of the toggle and the DX# seems to vary depending if I toggle down from the top or up from the bottom. In essence its the opposite effect of what I need, except for the PITCH switch I do need the center but am only getting two outputs when I need all 3…
I’d wager you’ll want the invert pin setting for these.
Hope that helps!
-
@Atlas said in PoKeys 57U - output DX presses?:
I’d wager you’ll want the invert pin setting for these.
Hope that helps!
Appreciate the effort, but I think i’m just confusing the issue more. Think i’ll just stick to having it send keystrokes…
This pertains to all three of my 3 way toggles (as the dials work fine) -
Three way Toggle
Start in the Center position
Flick it down to the Bottom position - NO OUTPUT
Flick it from Bottom back up to Center - It sends a DX#
Flick it to UP position - NO OUTPUT
Flick it from UP back to Center - It Sends a 2nd DX#.I need a DX# sent for UP and Down on one switch, and for all three positions on another. I know all positions function because I can send keystrokes to achieve what I want… I just wanted to send DX but I just don’t get it… sorry.
-
See the last 2 pictures above, for Pin 24 and Pin 25.
Flick it to the down position (taxi), it sends DX24
Flick it to the centre position (off), it sends DX24 Release and DX25 Release
Flick it to the up position (landing), it sends DX25Just copy the settings above, remove the key inputs that you’re sending, and it should work.
Did you get my PM?
-
@Atlas said in PoKeys 57U - output DX presses?:
See the last 2 pictures above, for Pin 24 and Pin 25.
Flick it to the down position (taxi), it sends DX24
Flick it to the centre position (off), it sends DX24 Release and DX25 Release
Flick it to the up position (landing), it sends DX25Just copy the settings above, remove the key inputs that you’re sending, and it should work.
Did you get my PM?
Yes thank you. I’ll take a fresh look at it tomorrow.
-
@Icer
no worries, let me know. I’ve pinged you on Discord as well.I must say it’s been confusing for me as well when I first tackled this but after building an entire cockpit…
-
@Atlas said in PoKeys 57U - output DX presses?:
@Icer
no worries, let me know. I’ve pinged you on Discord as well.I must say it’s been confusing for me as well when I first tackled this but after building an entire cockpit…
Just went back in and everything works, all I had to do was “Invert Pin” (as you stated earlier but I missed in my confusion) to get the damn thing to output on the UP\Down, then used Alt Launcher “Release” function to get the center position… Somethimes I waaaaay overthink, thanks for being so patient.
-
@Icer
glad you got it working! Let me know if you need any more help!I must say, DX input has its pros and cons. Pro is definitely easier to map. You can change your key binds and it won’t affect the DX mapping.
You can even map callbacks to DX even if those callbacks don’t have key binds! Con is that the in-cockpit switch will sync with your actual switch so if you don’t have the cockpit set up correctly in your physical setup, your jet may start shutting down as soon as the game syncs with your setup. -
@Atlas said in PoKeys 57U - output DX presses?:
@Icer
glad you got it working! Let me know if you need any more help!I must say, DX input has its pros and cons. Pro is definitely easier to map. You can change your key binds and it won’t affect the DX mapping.
You can even map callbacks to DX even if those callbacks don’t have key binds! Con is that the in-cockpit switch will sync with your actual switch so if you don’t have the cockpit set up correctly in your physical setup, your jet may start shutting down as soon as the game syncs with your setup.See your point, I just like the simplicity that DirectX brings (once you don’t bury yourself in confusion\frustration!)… Its also more reliable than CTRL-X presses, works flawlessly now here and in DCS (DCS has a “DX Button OFF” function similar to AL’s “Press\Release”). Thanks again bud!
-
@Icer
Well, that confusion/frustration is just part of the learning process and you only go through it once or twice, but will benefit you each time you fly, so it’s a very cheap price IMHO, considering the added immersion of using physical switches correctly mapped.