v_sim.SimplifiedEvents

Fields

Name

Type

Access

Description

button

int

r/w

the number of the button, 0 if not a button event ;

buttonType

v_sim.ButtonActionId

r/w

v_sim.ButtonActionId.PRESS or v_sim.ButtonActionId.RELEASE ;

controlMod

bool

r/w

True if Control key is pressed during the event ;

letter

int

r/w

The value of the letter if the event is a key stroke ‘\0’ if not ;

motion

bool

r/w

True if the event is a motion ;

root_x

int

r/w

the position x (in root window) for the event ;

root_y

int

r/w

the position y (in root window) for the event ;

shiftMod

bool

r/w

True if Shift key is pressed during the event ;

specialKey

v_sim.SpecialKeyStroke

r/w

the value of a special key if the event is a key stroke but not with an ascii letter.

x

int

r/w

the position x (on parent) for the event ;

y

int

r/w

the position y (on parent) for the event ;

Methods

None

Details

class v_sim.SimplifiedEvents

This structure is a common interface for events (inspired from X). We don’t use the one introduced by GDK because we don’t want this dependency be a limitation.