YaST2 Developers Documentation: Joustick configuration

Joustick configuration

modules/Joystick.ycp
Joystick data

This module has an unstable interface.

Imports

  • Mode
  • Service

Global Variables

Global Functions

global joystick -> list

joystick config datastructure (list of maps)

global RequiredKernelModules () -> list<string>

Get list of all required joystick kernel modules

Return value:
list of modules
global Read (block<boolean> abort) -> boolean

Read all joystick settings from the SCR

Parameters:
abort A block that can be called by Read to find out whether abort is requested. Returns true if abort was pressed.
Return value:
True on success
global Changed () -> boolean

Return configuration status

Return value:
true if configuration was changed
global SaveOneJoystick (integer pos) -> boolean

Update the SCR of the one joystick

Parameters:
pos joystick number
global Stop () -> boolean

Stop joystick service

global WriteConfig () -> boolean

Write sysconfig values (flush)

global StartAndEnable () -> boolean

Start joystick service and insserv it

global Write (block<boolean> abort) -> boolean

Update the SCR according to joystick settings

Parameters:
abort A block that can be called by Write to find out whether abort is requested. Returns true if abort was pressed.
Return value:
True on success
global Import (list settings) -> boolean

Get all joystick settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success
global Export () -> list

Dump the joystick settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())
global Summary () -> string

Build a textual summary that can be used e.g. in inst_hw_config () or something similar.

Return value:
Summary of the configuration.