/* This file is part of the KDE Control Center Module for Joysticks SPDX-FileCopyrightText: 2003 Martin Koller SPDX-License-Identifier: GPL-2.0-or-later */ #include "joystick.h" #include "joydevice.h" #include "joywidget.h" #include #include #include #include #include #include #include K_PLUGIN_CLASS_WITH_JSON(Joystick, "joystick.json") Joystick::Joystick(QWidget *parent, const QVariantList &) : KCModule(parent) { setButtons(Help | Default); setAboutData(new KAboutData(QStringLiteral("kcmjoystick"), i18n("KDE Joystick Control Module"), QStringLiteral("1.0"), i18n("KDE System Settings Module to test Joysticks"), KAboutLicense::GPL, i18n("(c) 2004, Martin Koller"), QString(), QStringLiteral("kollix@aon.at"))); setQuickHelp( i18n("

Joystick

" "This module helps to check if your joystick is working correctly.
" "If it delivers wrong values for the axes, you can try to solve this with " "the calibration.
" "This module tries to find all available joystick devices " "by checking /dev/js[0-4] and /dev/input/js[0-4]
" "If you have another device file, enter it in the combobox.
" "The Buttons list shows the state of the buttons on your joystick, the Axes list " "shows the current value for all axes.
" "NOTE: the current Linux device driver (Kernel 2.4, 2.6) can only autodetect" "
    " "
  • 2-axis, 4-button joystick
  • " "
  • 3-axis, 4-button joystick
  • " "
  • 4-axis, 4-button joystick
  • " "
  • Saitek Cyborg 'digital' joysticks
  • " "
" "(For details you can check your Linux source/Documentation/input/joystick.txt)")); joyWidget = new JoyWidget(this); QVBoxLayout *top = new QVBoxLayout(this); top->setContentsMargins(0, 0, 0, 0); top->addWidget(joyWidget); } void Joystick::load() { joyWidget->init(); } void Joystick::defaults() { joyWidget->resetCalibration(); } #include "joystick.moc"