Jump to content

Warrigal

Members
  • Posts

    8
  • Joined

  • Last visited

Reputation

9 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Will do! So far, Atmosphere Autopilot looks really sophisticated and pretty straightforwardly written, too. Well done! So far, I've been able to figure everything out on my own, but I'll make sure to let you know if I have any questions! I heard that As it happens, I really like the back-end of Atmosphere Autopilot, so I'm pretty much throwing out all my existing controller logic in favor of AA. Meanwhile, I've got some "fresh new" ideas about the GUI, so I'm throwing out most of my GUI code, too. So, in short, I'm throwing away most of my previous code. C'est la programmation I'm planning for the next release to have all of the features of this release, but it will use the Atmosphere Autopilot control algorithms instead of my hastily-written PID controllers.
  2. It's been a long time, but I've finally updated this mod to include an altitude hold feature! Woo! Also, since Boris-Barboris's AtmosphereAutopilot mod is no longer maintained, I've decided to go ahead and merge that entire mod into Warrigal's Autopilot! (Yes, I can do this, because my mod and AtmosphereAutopilot are both licensed under the GNU GPL 3.0.) Initially, it's going to be a very awkward combination, but I'm planning to gradually bring the two mods into closer and closer integration. Happy flying!
  3. @Li0n Well, I used InputLockManager.SetControlLock(ControlType.CAMERACONTROLS, ...) as you suggested. It seems to work, so thanks for your help!
  4. Well, it's the key-down event which I want to consume, not the mouse click event. In any case, are there other mods which use InputLockManager for the purpose of consuming an input event? It would be really helpful to have something else to imitate.
  5. I'm creating a "spinner" control, which displays a number which the user can adjust by clicking the number and pressing the up and down arrow keys. All this is working fine, but when I press an up or down arrow key, not only does that make the number in my control change; it also moves the camera. This is happening even though I'm calling Event.current.Use() in my event handler for KeyDown events. I thought that calling Event.current.Use() would prevent the camera from moving. The desired behavior is that if the user presses the up or down arrow key while a spinner has keyboard focus, the spinner's value change and the camera does not move. Here's the event handler itself: case EventType.KeyDown: if (thisHasKeyboardFocus) { if (Event.current.keyCode == KeyCode.DownArrow) { value -= 1; } else if (Event.current.keyCode == KeyCode.UpArrow) { value += 1; } Event.current.Use(); } break; Here's the entire file defining the spinner control: https://github.com/tswett/WarrigalsAutopilot/blob/a360c575651a30970b2c13f18fe30e88746e0c43/WarrigalsAutopilot/Odospinner.cs And here's the GitHub issue I created for this problem: https://github.com/tswett/WarrigalsAutopilot/issues/1 Any help would be appreciated!
  6. My bad, sorry! I've added a link to the source code and stated the license in the post, too. The git repository already has the license file.
  7. Warrigal's Autopilot is a (currently) simple and basic mod designed to make flying an airplane just a little bit easier. Download: If you have CKAN, just search for Warrigal! Get it at GitHub: https://github.com/tswett/WarrigalsAutopilot/releases Source code: https://github.com/tswett/WarrigalsAutopilot The entire mod is released under the GNU GPL version 3.0. The autopilot can maintain heading (via bank angle) and altitude (via vertical speed, via pitch). The main screen uses a special type of control for numeric inputs. I like to call these controls "odospinners". To change the value in an odospinner: Click on the odospinner. This will turn it pink (with one digit blue). Optionally, use the left and right arrow keys to select a digit to change. The selected digit is blue, and all other digits are pink. To change the selected digit, do any of the following: Drag up and down using the mouse. Press the up and down arrow keys. Type in a digit. Features on the horizon: GUI improvements, in order to make it clearer what you're changing and how. Additional control schemes, such as pitch for speed, rudder for heading, and bank angle for track. The entire AtmosphereAutopilot mod will be merged into this mod!
  8. Is there any chance of KAS and KIS being re-licensed under the GPL v3 in the future? Out of all my favorite mods (FAR, KER, kOS, MSI IR, and KAS/KIS), KAS and KIS are the only ones that aren't licensed under the GPL v3.
×
×
  • Create New...