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.

Adding Repeat line to a keypress?

Featured Replies

Hey gang,Ok so I have compiled a joystick file for my Cougar, to give me more buttons/options available.Previously, I had mapped the eyepoint movements - left, right, up, down - directly to the stick from within Flight.Now by compiling a joystick file, I am actually assigning these same functions to the appropriete keypress as mapped by Flight, so pressing a button on my hatswitch generates that particular keypress, for moving the eyepoint. That is working fine. Doing it this way btw, gives me more options available on that one hatswitch, so instead of just having 4 buttons available via direct mapping, I now have 8 available due to the toggle switch I have on the stick. Doing it this way, will allow me to have all eyepoint movements on one hatswitch - left, right, up, down, forward, back, and reset. I like it that way. Can't do that with direct mapping from within Flight to the stick, but with my emulation profile for the Cougar I can...Now, when I had them mapped directly to the hatswitch - all I had to do was add the repeat statement.<Repeat>32.000000</Repeat>That worked beautifully, as then I could hold the hat switch say in the left position, and the eyepoint would continue moving to the left - then once I let go, it stopped where I wanted.This same repeat statement does not appear to work however with a key assignment - I tried adding to no effect. Isn't there another repeat statement that will work with the keyboard assignments, so I can accomplish this still with the way I now have it set up? Would like to do it for my flaps as well...Oh, on a sidenote - I assigned left brake to a button, and right brake to a button - in the RV, this had no effect- is this because those are not fuctioning properly yet in the sim, or is it because the RV just doesn't have seperate braking? I too assigned those in the emulation file for my stick , by using the appropriate key commands.Thanks for any help here, would be much appreciated!

Don B

On the G940, buttons mapped to keyboard keys in the joystick software automatically repeat when held, just like pressing the key directly. Dunno about the TM stuff, though.I'd think you'd need to fix this in the TM software, though, not in Flight's config files.

there is a way by editing an xml file associated with the controls associated to Flight(app data/local/micorsoft/Flight/Players/"a serial"/controlsOPEN using EDIT (right-click)you have to find one that has repeat function already established then copy that exactly to the other entrythe line you search for is <Repeat>32.000000</Repeat> as is , copy it to the same spacing

  • Author

Oh man wait a minute, Robo is quite correct in that it is built into my Cougar software - I am such a moron and I knew better!All I have to do in the emulation file for my Cougar, is use the /Hold modifier for each button that I want it on, then by holding the button press it holds the keypress as well, like you were pressing and holding the keyboard down until take your finger off , which when I release the hat button will be the same.Guess I was just too focused on dang repeat statements!Man sometimes I just make things way more complicated than need be - sorry about that guys, I will go in and modify my emulation file for my Cougar now...Don't worry any more on this one - I am sure this is my solution.Thanks ,Btw though, any thoughts on the left and right brake assignments sidenote question would be greatly appreciated as well!I know I heard toe brakes were not working, are these individual brake key assignments not working either? Or do I need to hold on them as well maybe?

Don B

  • Author

Woohoo, adding the /hold modifier to the appropriate hat buttons on my stick did the trick, working beautifully!And really works well on pitch trim - individual presses = 1 degree movements, whereas if I hold the hat button it moves constant rate and I can stop when it is about where I want it.I also went ahead and added the hold modifier for my left and right brake commands to the stick as well, now they are working appropriately.Thanks again, all is perfect now!

the line you search for is 32.000000 as is , copy it to the same spacing
Hey peppy197,I certainly appreciate the feedback, I was able to take care of it through my stick's programming software.By the way, that particular repeat you listed works in axis statements where one has a function mapped directly to the joystick from within the flight contols menu. I originally had added some of those repeats when I was using my stick in this method.Does not work for key commands, I tried it first and did not work, and it fact when I reopened the standard.xml those lines I put in were gone. And I needed a way to hold <repeat> the key commands as I am now using an emulation file downloaded into my stick with it's software. All working well now though that I was able to do it through the stick's software programming.Thanks again ,

Don B

  • Moderator

Be aware that there is about a 1 to 2 second delay in application of brakes in Flight, regardless of how you trigger them...

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
Be aware that there is about a 1 to 2 second delay in application of brakes in Flight, regardless of how you trigger them...
Yes that one I have been painfully aware of and have complained on more than one occasion...Thanks,

Don B

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.