Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

KEY_VIEW_CAMERA_SELECT

Featured Replies

What does the KEY_VIEW_CAMERA_SELECT (_0 through 9) do in FSX? I am looking for a way, if possible, to make a toggle switch on a panel to toggle on and off a camera definition that I have made in the aircraft.cfg. Is it possible to do this? Thanks, regards, Bob.

  • Moderator

I don't see that one on the list from the FSX SDK, but I do see this one:VIEW_CAMERA_SELECT_STARTIt should work by passing the camera # like any other set type command:n (>K:VIEW_CAMERA_SELECT_START)

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
I don't see that one on the list from the FSX SDK, but I do see this one:VIEW_CAMERA_SELECT_STARTIt should work by passing the camera # like any other set type command:n (>K:VIEW_CAMERA_SELECT_START)
Hi Bill. It's in the SP1 SDK that I have:#define KEY_VIEW_CAMERA_SELECT_1 (KEY_ID_MIN + 1315)#define KEY_VIEW_CAMERA_SELECT_2 (KEY_ID_MIN + 1316)#define KEY_VIEW_CAMERA_SELECT_3 (KEY_ID_MIN + 1317)#define KEY_VIEW_CAMERA_SELECT_4 (KEY_ID_MIN + 1318)#define KEY_VIEW_CAMERA_SELECT_5 (KEY_ID_MIN + 1319)#define KEY_VIEW_CAMERA_SELECT_6 (KEY_ID_MIN + 1320)#define KEY_VIEW_CAMERA_SELECT_7 (KEY_ID_MIN + 1321)#define KEY_VIEW_CAMERA_SELECT_8 (KEY_ID_MIN + 1322)#define KEY_VIEW_CAMERA_SELECT_9 (KEY_ID_MIN + 1323)#define KEY_VIEW_CAMERA_SELECT_0 (KEY_ID_MIN + 1324)The camera definitions in my aircraft.cfg are numbered 0,1,2,3 and 001,002,003 and 004. Should I renumber them to 1 through 7? Thanks and best regards, Bob.
  • Moderator

Bob, those are from the gauges.h file, and are C key_commands. They are not available for XML script "gauges" at all, so unless you are planning to code a C gauge, they are quite useless.For XML scripts, you should only be looking at the two documents in the ..\SDK\Core Utilities Kit\Variables folder:Event IDs.htmSimulation Variables.html

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
What does the KEY_VIEW_CAMERA_SELECT (_0 through 9) do in FSX? I am looking for a way, if possible, to make a toggle switch on a panel to toggle on and off a camera definition that I have made in the aircraft.cfg. Is it possible to do this? Thanks, regards, Bob.
Thosecan be linked to "HotKeySelect=" statements that you can attach to any CameraDefinition.xxx sectionin an Aircraft.cfg file.I use those and assign them to my #2 hat on my X-45 stick. At a flick of my thumb I can "move" aroundthe VC ( or anywhere else I have a CameraDefinition set ). Typically I have them set for "Right Seat","Overhead" and "Pedestal" views with the fourth switch assigned to F9 to return to the default VC viewwhich is normally the left seat. So, each aircraft can have a unique set of CameraDefintions linked tothe same HotKeys and thus buttons or switches that allow instant switching to views tailored for that aircraft via the CameraDefinitions.Say tou want to be able to select "CameraDefinition.001" with a button or switch.Just add a statement such as "HotKeySelect=5" at the end of that definition.Then, in the FSX Controls\Buttons & Keys menu, assign "View Camera 5 (select)" to the button or switch you want to use for selecting the Camera Definition you have added the HotKeySelect statement to.You can assign Camera 0, and 4 through 9 with this method. PaulPS: Those View Selects can also be assigned via FSUIPC as well as they are standard offsets 66851 - 66860. See pages 6 & 7 of the "List of FSX Controls.pdf" that is supplied as part of the FSUIPC4 documentation.
Wide-5.jpg

  • Commercial Member

Has anyone been able to get this to work:KEY_VIEW_CAMERA_SELECT_START,4I pass a parameter to it (like 4 in the example above) but the Camera does not change to 4.However, this key event will change the view to Camera 4. It works fine:KEY_VIEW_CAMERA_SELECT_4

  • Author
Bob, those are from the gauges.h file, and are C key_commands. They are not available for XML script "gauges" at all, so unless you are planning to code a C gauge, they are quite useless.For XML scripts, you should only be looking at the two documents in the ..\SDK\Core Utilities Kit\Variables folder:Event IDs.htmSimulation Variables.html
Hi Bill. OK. Thanks. I did not realize that. I'll look where you suggested. Best regards, Bob.
Thosecan be linked to "HotKeySelect=" statements that you can attach to any CameraDefinition.xxx sectionin an Aircraft.cfg file.I use those and assign them to my #2 hat on my X-45 stick. At a flick of my thumb I can "move" aroundthe VC ( or anywhere else I have a CameraDefinition set ). Typically I have them set for "Right Seat","Overhead" and "Pedestal" views with the fourth switch assigned to F9 to return to the default VC viewwhich is normally the left seat. So, each aircraft can have a unique set of CameraDefintions linked tothe same HotKeys and thus buttons or switches that allow instant switching to views tailored for that aircraft via the CameraDefinitions.Say tou want to be able to select "CameraDefinition.001" with a button or switch.Just add a statement such as "HotKeySelect=5" at the end of that definition.Then, in the FSX Controls\Buttons & Keys menu, assign "View Camera 5 (select)" to the button or switch you want to use for selecting the Camera Definition you have added the HotKeySelect statement to.You can assign Camera 0, and 4 through 9 with this method. PaulPS: Those View Selects can also be assigned via FSUIPC as well as they are standard offsets 66851 - 66860. See pages 6 & 7 of the "List of FSX Controls.pdf" that is supplied as part of the FSUIPC4 documentation.
Thanks Paul for the info. Best regards, Bob.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.