module charge.ctl.mouse

Source file for Mouse.

Code Map

//! Source file for Mouse.
module charge.ctl.mouse;


class Mouse : Device
{
public:
	//! Mask of button state, 1 == pressed *
	state: u32;
	x: i32;
	y: i32;
	move: void delegate(Mouse, i32, i32);
	down: void delegate(Mouse, i32);
	up: void delegate(Mouse, i32);


public:
	this() { }
	fn setRelativeMode(value: bool);
	fn getRelativeMode() bool;
}