These are the Support Forums for FSUIPC and related products.

These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.

Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.

Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE

Programming Hat Swi...
 
Notifications
Clear all

Programming Hat Switch

Posts: 4
Registered
Topic starter
(@cv-sayler)
Joined: 5 days ago

I am trying to set up my joystick hat switch so that i can look around the cockpit without having to use the mouse. I have tried moving the hat switch to its eight different positions and assigning each position a different pan control. I have left and right (like a head turn) but when I release the switch it snaps back to straight ahead. If I try to look down I get closer to the instrument panel and if I try to look up I get further away from the instrument panel. 

Can someone who has successfully programed their hat switch to look around the cockpit (and stay put when you stop pressing the switch) please post the button assignments that they used? 

Thanks, 

CV Sayler


1 Reply
Posts: 350
Admin
(@fsuipc)
Joined: 1 year ago

Hat assignment is not that straightforward in MSFS, as the pan controls that worked in all previous sims (FSX. P3D) no longer work as expected.

The easiest way to assign your hat switch to control the view is to assign to the (MSFS) default key controls to control the view, which use the left control key in combination with the Up, Down, Left and Right keys. This results in the following assignments:

19=RS,39,K38,10 	-{Key press: lctl+Up}-
20=RS,39,K37,10 	-{Key press: lctl+Left}-
21=RS,38,K37,10 	-{Key press: lctl+Left}-
22=RS,34,K39,10 	-{Key press: lctl+Right}-
23=RS,35,K39,10 	-{Key press: lctl+Right}-
24=RS,35,K40,10 	-{Key press: lctl+Down}-
25=RS,36,K40,10 	-{Key press: lctl+Down}-
26=RS,37,K40,10 	-{Key press: lctl+Down}-
27=RS,37,K37,10 	-{Key press: lctl+Left}-
28=RS,32,K38,10 	-{Key press: lctl+Up}-
29=RS,33,K38,10 	-{Key press: lctl+Up}-
30=RS,33,K39,10 	-{Key press: lctl+Right}-

You can copy this directly to the [Buttons] section of your FSUIPC7.ini file, but do this when FSUIPC7 is not running and make sure you update the index number (the first number on each line) to be unique in your [Buttons] section, and change the letter S (in '=RS,...'), my joystick letter, to the letter of your joystick.

I also have two other hat switches, with 4 buttons each. On one of these I have assigned to move the eyepoint. This works well in MSFS2020 but has the same effect as the main hat switch assignments in MSFS2024. This is assigned to send the UP/Down/Left/Right keys which trigger the 'translate cockpit view' events:

59=RS,11,K39,8 	; translate cockpit view right  -{Key press: Right}
60=RS,12,K40,8 	; decrease cockpit view height -{Key press: Down}
61=RS,13,K37,8 	; translate cockpit view left  -{Key press: Left}
62=RS,10,K38,8 	; increase cockpit view hight -{Key press: Up}

My other hat I assign to quick-view 45 degree left and right using presets. However, you also need to reset the view after this (otherwise main hat switch no longer works), so I do this on button release sending 'lctrl + space' to trigger the reset view event. BUT, this only works in MSFS2020 as the default key assignment for this in MSFS2024 is 'lshift + space'. If using MSFS2024 only, you can assign to his instead, but as I use both MSFS2020 and MSFS2024, in MSFS2024 I also add the key combination 'lctrl+space' to reset the view in MSFS2024. This results in the following assignments:

31=PS,7,CPQuick_View_-_Right_45_Degree,0 	-{Preset Control}-
32=US,7,K32,10 	; cockpit view reset-{Key press: lctl+Space}-
33=RS,9,CPQuick_View_-_Left_45_Degree,0 	-{Preset Control}-
34=US,9,K32,10 	;cockpit view reset-{Key press: lctl+Space}- 
35=RS,8,K40,24 ;translate cockpit view backward	-{Key press: lalt+Down}
36=RS,6,K38,24 ;translate cockpit view forward	-{Key press: lalt+Up} 

Hope that helps. Let me know how it goes.

John


Reply