Skip to content
/ xJoyMap Public

An X-plane python plugin to simplify modifying datarefs with your joystick and creating advanced commands

Notifications You must be signed in to change notification settings

joanpc/xJoyMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xJoyMap wants to be a simple way to modify datarefs with your joystick and/or creating
advanced combined commands

Implements the following modes:

axis2dataref:               maps a joystick axis to a dataref
button2dataref incremental: increment / decrement a dataref pressing a joy button
button2dataref toggle:      toggle between predefined values on button press
button2dataref Switch mode: Useful for hardware switches (pressed_value, unpressed_value)
buttonAlias:                creates Alias, combo and "shifted" commands and allows to override X-Plane default commands.
Constant dataref:           Define constant values for datarefs on plane load (useful to set the fov for example)

It should be useful to:

* Users who want to change the behavior their joystick between aircraft
  changes without visiting the joy config pane (see the x737 config example)

* Hardware Cockpit builders who want to assign dozens of buttons 
  and switches without having to write their own plug-ins.

* Airplane builders with custom plugins who doesn't want 
  to write all the button to dataref communication.

Please share your config files with the community!!
I will be more than pleased to add your config files to the examples folder; contact me!

Please feel free to post your patches, bugs and contributions
at http://github.com/joanpc/xJoyMap

=============
Installation
=============

You need the awesome PYTHON INTERFACE PLUGIN by Sandy Barbour
http://www.xpluginsdk.org/python_interface_sdk100_downloads.htm
It requires the last version 2.66.01 prior versions are incompatible.

Note: If you're using windows or an old osx version you must also install Python:
http://www.xpluginsdk.org/python_interface_sdk100_downloads.htm

For more info read sandy's documentation:
 http://www.xpluginsdk.org/downloads/PythonInterfaceDocuments.zip

Copy PI_xJoyMap.py and xJoyMap.ini to your 
Resources/plugins/PythonScripts directory.

Edit xJoyMap.ini to fit your needs. It contains some examples
and comments in order to help you.

If you want specific commands for an aircraft
copy xJoyMap.ini to the aircraft folder and modify it.
You can also use aircraftname.xjm in your aircraft folder,
see the 737.xjm in the examples folder.

===================
Configuration/Help
===================

Check the config files in the examples folder for more info.

=============
Future plans
=============
More shift commands:  To be able to map the saitek x52 mode switch  

*Maybe*
override yoke:
shift axis:           Define axis assignments for each shift state

======
Thanks
======

to Sandy Barbour for the awesome X-Plane Phyton Interface,
his support, recommendations and fixes. 
to Chewbacca400 for his crj200 config file, recommendations 
and bug repports.

All the x-plane.org community for releasing so quality stuff for free :)

Enjoy
Joan

Copyright (C) 2010  Joan Perez i Cauhe
---
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

About

An X-plane python plugin to simplify modifying datarefs with your joystick and creating advanced commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages