• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX View direction from hat switch

Messages
206
Country
unitedkingdom
Hi all,

If I move my view with the numberpad in the 2D cockpit view, I can capture which view is being used with something like this:

Code:
	<Keys>
		<On Event="VIEW_RESET">1 (>L:FrontView, number)</On>
		<On Event="VIEW_FORWARD">1 (>L:FrontView, number)</On>	
		<On Event="VIEW_WINDOW_TO_FRONT">1 (>L:FrontView, number)</On>
		<On Event="VIEW_FORWARD_RIGHT">1 (>L:FrontRightView, number)</On>
		<On Event="VIEW_RIGHT">1 (>L:RightView, number)</On>
		<On Event="VIEW_REAR_RIGHT">1 (>L:RearRightView, number)</On>
		<On Event="VIEW_REAR">1 (>L:RearView, number)</On>
		<On Event="VIEW_REAR_LEFT">1 (>L:RearLeftView, number)</On>
		<On Event="VIEW_LEFT">1 (>L:LeftView, number)</On>
		<On Event="VIEW_FORWARD_LEFT">1 (>L:FrontLeftView, number)</On>
		<On Event="VIEW_FORWARD_UP">1 (>L:FrontUpView, number)</On>
	</Keys>

However, when I look around with the hat switch on my joystick, that code is not triggered. I can set the hat switch to send those keys with FSUIPC, but then the panning functions in other views are messed up... Is there a way to either capture the joystick button press in an XML gauge, or some way to get FS or another gauge to tell me the view direction in use?

Thanks,
Geoff
 
C++ and SimConnect...

Oh dear - not something I'm going to be able to just do easily then! I have only had FSX for two weeks and am still learning, and I have never made any C++ gauges for FS..!
I don't suppose anyone has written a gauge to make information like that available to lesser mortals?

Geoff
 
I would but me hands be full atm....best i can do when i hang here is offer small tips and tricks.
 
Back
Top