• Stars
    star
    140
  • Rank 260,665 (Top 6 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 15 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build Status

jstest-gtk

jstest-gtk is a simple joystick tester based on Gtk+. It provides you with a list of attached joysticks, a way to display which buttons and axis are pressed, a way to remap axis and buttons and a way to calibrate your joystick.

You can find the latest version at:

Questions, comments and bug reports can be given to:

Compiling

Make sure you have the following pieces of software installed (they are part of most distributions):

  • cmake
  • sigc++
  • gtkmm

You can compile it by typing:

$ mkdir build
$ cd build
$ cmake ..
$ make

Usage

Once compiled you can start jstest-gtk with:

$ ./jstest-gtk

or if you know the device you want to test with:

$ ./jstest-gtk /dev/input/js0

The main window will provide you with a list of currently available joysticks. When you double click a joystick it will display the Test dialog, allowing you to test buttons and axes on the joystick.

The mapping dialog allows you to reorder the buttons and axis. This is useful for example when a game expects the dpad to be on axis 0 and 1, while in reality it is often on axis 4 and 5 on a dual-analogstick gamepad.

The calibration dialog allows you to manipulate some low level details on how the raw axis values are mapped to the joystick device. For example you can inverse an axis, disable an axis or remove its deadzone, to gain more fine control on small movements. This is especially useful as the default calibration values for most joysticks give it a far bigger deadzone then needed, thus reducing your ability for fine movements.

SDL Notes

Depending on what version and what compilation flags where used, your version of SDL might not use the joystick interface at all, but instead use the /dev/input/event* device directly. That means that any calibration or button/axis mapping will be ignored, as those apply to the joystick interface, not evdev.

To work around that you have to set an environment variable that forces SDL to use the joystick device:

$ SDL_JOYSTICK_DEVICE="/dev/input/js0"
$ export SDL_JOYSTICK_DEVICE

When you need two or more joysticks this will not work and you might need to recompile SDL and disable the evdev support.

More info can be found at:

  • ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars

SDL_LINUX_JOYSTICK: Special joystick configuration string for linux. The format is name numaxes numhats numballs where name is the name string of the joystick (possibly in single quotes), and the rest are the number of axes, hats and balls respectively.

SDL_JOYSTICK_DEVICE: Joystick device to use in the linux joystick driver, in addition to the usual: /dev/js*, /dev/input/event*, /dev/input/js*

More Repositories

1

sdl-jstest

Simple SDL joystick test application for the console
C
54
star
2

evtest-qt

Linux Joystick Tester for Qt
C++
41
star
3

rfactortools

rfactortools moved to https://gitlab.com/grumbel/rfactortools
C
29
star
4

udraw

udraw moved to https://gitlab.com/grumbel/udraw/
C++
14
star
5

steamtools

Steam Tools
Python
10
star
6

fullscreen-tools

Set of tools and scripts to force X11 programs into fullscreen mode
C++
9
star
7

viewer

Simple 3D model viewer with anaglyph 3D glasses support
C++
8
star
8

SDL_tty

TTY-like interface for SDL
C
8
star
9

fontgen

Generate bitmap images from .ttf files
C++
6
star
10

ttsprech

Simple text2speech for the command line
Python
6
star
11

randomstring

Random string generator
Python
6
star
12

procmem

A process memory inspection tool for Linux
Python
5
star
13

qbasic

Old QBasic code from 1993-1997
BASIC
5
star
14

rfactorlcd

rFactor Remote LCD
Python
4
star
15

thevoid-extractor

Extraction script for the game "The Void"
Python
4
star
16

rpi-opengl

Raspberry Pi OpenGL Example Code
C++
4
star
17

script-fu

A Script-Fu tutorial for Gimp
HTML
3
star
18

clockgr-qt

A fullscreen clock for Gtk+
Python
3
star
19

grayscale5110

Display grayscale images on a Nokia5110 monochrome display
C++
3
star
20

Greval

A simple toy programming language
C++
3
star
21

landscape

HTML5/Canvas Landscape Generator
JavaScript
3
star
22

minised

Minimal sed replacement in Python, including a GUI
Python
2
star
23

argparser

A Command Line Argument Parser for C++
C++
2
star
24

downtown-extractor

Extraction scripts for the games Goin' Downtown and Everlight
Python
2
star
25

netbrush

Moved to https://gitlab.com/grumbel/netbrush
C
2
star
26

vidthumb

GStreamer based video thumbnailer
C++
2
star
27

doom-levels

Doom levels created by Grumbel back in 1995
1
star
28

vncpasswdcrack

Deobfuscation tool for ~/.vnc/passwd
C
1
star
29

stopwatch

Stopwatch application for the command line
C++
1
star
30

exspcpp

Spawning subprocesses in C++
C++
1
star
31

arxpcpp

Archive Explorer for C++
C++
1
star
32

FaceBuilder

Simple toy application for constructing faces
Ruby
1
star
33

tinycmmc

Tiny CMake Module Collections
CMake
1
star
34

jnrcol

Jump'n Run Collision Detection Demo
C
1
star
35

chrootinit

chroot into a directory on boot before calling init
C
1
star
36

advent

An adventure game engine
C++
1
star
37

unsebu

libusb helper for C++
C++
1
star
38

xevtest

X11 Event Tester
C++
1
star
39

blinky-libopencm3

Minimal example for a LED blinky project on the blackpill (STM32-F4) using libopencm3 and NixOS
Nix
1
star
40

wiz-keyboard

C
1
star