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.

3d GPS Controls...

Featured Replies

  • Moderator

Good grief, but this 3d XML script for GPS control is a stone-cold PITA!After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...For example, here's what should be pretty straight forward:

  <PartInfo>	<Name>GPS2_PageKnob</Name>	<MouseRect>	  <Cursor>Hand</Cursor>	  <TooltipText>Page Knob</TooltipText>	  <MouseFlags>LeftSingle+RightSingle+Wheel</MouseFlags>	  <CallbackCode>		(M:Event) 'LeftSingle'  scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }		(M:Event) 'RightSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }		(M:Event) 'WheelUp'	 scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }		(M:Event) 'WheelDown'   scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }	  </CallbackCode>	</MouseRect>  </PartInfo>

Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work! :( Okay, how about the Flight Plan? This you would expect to display the Flight Plan page, right?

  <PartInfo>	<Name>GPS2_FPL_BUTTON</Name>	<MouseRect>	  <Cursor>Hand</Cursor>	  <TooltipText>Flight Plan</TooltipText>	  <CallbackCode>(>K:G1000_MFD_FLIGHTPLAN_BUTTON)</CallbackCode>	</MouseRect>  </PartInfo>

Oh no! It turns on the TERRAIN color display!These are completely broken. They do nothing at all:G1000_MFD_MSG_BUTTONG1000_MFD_OBS_BUTTON

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Bill,Try putting the right mouse click check above the left mouse click:(M:Event) 'RightSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_INC) }(M:Event) 'LeftSingle' scmi 0 == if{ (>K:G1000_MFD_PAGE_KNOB_DEC) }I once had a problem where the one of the mouse clicks wouldn't work and I found the solution was to place the right click above the left click. I can't say for certain that this actually fixed the problem (maybe I had something else messed up in the syntax) but when your desperate you'll try anything.I'd also try isolating the page_knob_dec key just to see if it really is broken. ie remove all lines except the leftsingle.

Good grief, but this 3d XML script for GPS control is a stone-cold PITA!After finally managing to get it working (sort of), now I find that some of the key_events are either screwed up, or simply don't work at all...Should work, right? Nope! the pages will increase with no problem, but the DECREASE simply doesn't work! :(
This is my standard code that works..
							   <Click Kind="WheelUp+WheelDown+LeftSingle+Leave">							   (M:Event) 'WheelUp' scmp 0 == if{ ..... }	 							   (M:Event) 'WheelDown' scmp 0 == if{ ......}							   (M:Event) 'LeftSingle' scmp 0 == if{ ......}										   (M:Event) 'Leave' scmp 0 ==  if{ ....... }							   </Click>

Edit: Looks like you've got it working.. from your other note :(

Bert

  • Author
  • Moderator

Thanks Bert.Actually, these <KEY> commands are simply DEAD in FSX...G1000_MFD_PAGE_KNOB_DECG1000_PFD_PAGE_KNOB_DECGPS_PAGE_KNOB_DECLikewise all variations of these <KEY> commands:G1000_MFD_MSG_BUTTONG1000_MFD_OBS_BUTTONNone of them will work even when they are the ONLY command being sent... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.