module charge.ctl.joystick

Source file for Joystick.

Code Map

//! Source file for Joystick.
module charge.ctl.joystick;


class Joystick : Device
{
public:
	axisValues: i32[32];
	axis: void delegate(Joystick, i32, i32);
	down: void delegate(Joystick, i32);
	up: void delegate(Joystick, i32);


public:
	this() { }
	fn enable() bool { }
	fn disable() { }
	fn enabled(status: bool) bool;
	fn enabled() bool;


protected:
	fn handleAxis(which: size_t, value: i16) { }
}