Camera variable for custom view?

Using Touch Portal to set views in Fenix A320.

To switch to the pedestal, I use:

2 (>A:CAMERA STATE, Enum) 2 (>A:CAMERA VIEW TYPE AND INDEX:0, Enum) 5 (>A:CAMERA VIEW TYPE AND INDEX:1, Enum)

This uses an instrument view as described by:

https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Camera_Variables.htm

I have not been able to find the variable to switch to a “Custom View”, there is only “Quickview”. As a workaround, I assign a key on the keyboard to the view, and send this key via Touch Portal. This is kind of ugly and depends on the simulator having the focus.

Any ideas?

Unfortunately it doesn’t seem to be possible right now to remotely set camera to a custom view. One can save a custom view, but not load it, strange as that may seem.
See this 3+ year old request, for example: https://devsupport.flightsimulator.com/t/custom-cameras-save-load/4534

One workaround I could suggest specifically for Touch Portal is to use my TJoy plugin to set up a virtual joystick/gamepad. Then camera controls can be assigned to this virtual device and should work regardless of focus (just like any other joystick).

You could use the same virtual device to map other controls as well, of course, including axis-style controls mapped to TP sliders.

Cheers,
-Max

Thanks for the confirmation. I have been using your plugin since it came up (thank, works great), but I do not fully understand what you mean by

‘Then camera controls can be assigned to this virtual device and should work regardless of focus (just like any other joystick).’

Could you please elaborate?

DM

The TJoy Touch Portal plugin is separate from the MSFS plugin (I author both). They can both be used at the same time, of course.

TJoy lets you control a virtual joystick or gamepad via TP buttons/sliders. For example pressing buttons or moving axes on a vJoy joystick instance. A virtual joystick driver is required (as detailed in the TJoy plugin instructions).

So for example you could configure vJoy with one virtual joystick (vJoy driver comes with a control panel to do that). This virtual stick is now available in MSFS as a controller, and can be configured like any other device. You could then assign the custom camera actions to be triggered by various buttons of the vJoy device.

Then in Touch Portal, using TJoy actions, you can configure TP buttons to press corresponding buttons on that vJoy device.

Does that help? I can elaborate on any of that, just let me know.

-Max

I know what you mean, and I see vJoyDevice in Devices List and can send events from TouchPanel and (testwise) from Axis and Ohs.

But nothing shows up in Search For Input when I fire a button 1 virtual event.

Still trying (but thanks for the idea, I also found it afterward in the AAO Manual

Odd… Do the button presses show up in a joystick monitor app, like the Windows joystick properties window or vJoy Monitor (included with vJoy driver)? vJoy also comes with a demo “feeder” app where all the virtual controls for a vJoy instance can be activated (to eliminate possible issues with TJoy or AAO).

Or maybe something got broken in FS24… I’ll give it a test later tonight and report back if it doesn’t work. Last time I tried FS24 it took something like 15 minutes to load the controls config setup screens properly before I could change any joystick settings at all (physical or virtual). Not quite my favorite sim right now :slight_smile: . I don’t participate in the “beta” test version though so can’t verify that.

-Max

Since “Search” does not work, I also tried to set the input button manually. The 8 Buttons are of vjoy are visible in the Settings and I can select them, so I think the driver is ok. But nothing happens on AAO/Touch panel action.

I had already played with the demo, and do not understand the meaning of the 8 buttons, because they are toggle button, i.e. remain down after a press.