~isac/walls/trunk

« back to all changes in this revision

Viewing changes to prototypes/mouse_commands_rev/g.py

  • Committer: isac
  • Date: 2017-06-03 20:49:26 UTC
  • Revision ID: isac@ocastudioscom-20170603204926-pv6nqk1xoz817nv0
First Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
clock = None
 
2
running_time = None
 
3
action_queue = []
 
4
last_command = None
 
5
hanging_action = None
 
6
 
 
7
command_press = None
 
8
ignore_mouse_press = False
 
9
 
 
10
#List of possible commands
 
11
COMMAND_WAIT_CLICK = 0
 
12
COMMAND_CLICK = 1
 
13
COMMAND_DOUBLE_CLICK = 2
 
14
COMMAND_LONG_CLICK = 3
 
15
COMMAND_DRAG = 4
 
16
COMMAND_DRAG_RELEASE = 5
 
17
COMMAND_HOLDING = 6
 
18
COMMAND_PRESS = 7
 
19
 
 
20
#List of constant parameter
 
21
fps = 30
 
22
double_click_delay = 300
 
23
long_click_delay = 900
 
24
drag_tolerance = 8
 
25
resolution = (720,450)
 
 
b'\\ No newline at end of file'