GithubHelp home page GithubHelp logo

yoryan / fg-x360-gamepad Goto Github PK

View Code? Open in Web Editor NEW
18.0 4.0 2.0 8 KB

A custom joystick configuration and Nasal library for FlightGear Flight Simulator and the Xbox 360 controller.

flightgear xbox-controller

fg-x360-gamepad's Introduction

Xbox 360 gamepad configuration for FlightGear

This is my custom joystick configuration for Xbox 360 controllers for FlightGear Flight Simulator. Unlike the default config, it supports Windows and Linux, and it contains some cool extra bindings that make use of the thumbsticks and bumpers. For this extra functionality, a special Nasal library is used.

Note that this configuration has only been tested with a wired controller. It might work with a wireless one with some tweaks.

Install

  1. Clone this repository.

Windows

  1. Copy windows/x360.xml to $FG_ROOT\Input\Joysticks\. Delete (or change the file extension of) the default configuration at $FG_ROOT\Input\Joysticks\Microsoft\xbox-360-controller.xml.
  2. Copy windows/x360.nas to $FG_ROOT\Nasal\.

Linux

  1. Note: This config is designed to work with the xpad driver. This should be loaded by default in modern kernels.
  2. Copy linux_xpad/x360.xml to $FG_ROOT/Input/Joysticks/.
  3. Copy linux_xpad/x360.nas to $FG_ROOT/Nasal/.

Bindings

Bumpers

  • Left bumper: Shifter button. While this button is pressed, other buttons will execute their shifted actions (if there are any assigned). This is analogous to the Control or Shift keys on a keyboard.
  • Right bumper: Raise or lower landing gear.
    • Shift: Toggle parking brake.

Triggers

  • Left trigger: Move rudder left, like a rudder pedal.
  • Right trigger: Move rudder right, like a rudder pedal.

Thumbsticks

  • Left thumbstick: X axis controls ailerons, Y axis controls elevators.
    • Shift: Y axis increases and decreases FOV.
  • Right thumbstick: Y axis controls throttle incrementally. Push up to increase, push down to decrease. Feels very natural.
    • Shift: Axes move your view, like a first-person shooter.
    • Shift + Press: View auto-centers and returns to the default FOV.

D-pad

  • D-pad up: Raise flaps.
  • D-pad down: Lower flaps.
  • D-pad left: Cycle view backwards.
  • D-pad right: Cycle view forwards.

Buttons

  • A: Elevator trim up, fine.
    • Shift: Elevator trim up, coarse.
  • X: Elevator trim down, fine.
    • Shift: Elevator trim down, coarse.
  • B: Right wheel brakes.
  • Y: Left wheel brakes.

(If you want to apply the brakes evenly, you need to press B and Y at the same time.)

  • Back: Open autopilot dialog.
    • Shift: Close autopilot dialog.
  • Start: Open moving map.
    • Shift: Close moving map.
  • Xbox/Guide: (Linux only) Cycle HUD.

(I do not know if it is possible to make a binding that opens or closes a dialog. Help needed.)

(The Windows driver does not report the Xbox button to FlightGear.)

License

Copyright (C) 2014 Ryan Young. Public domain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.