-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys_reductions.py
33 lines (24 loc) · 1.02 KB
/
keys_reductions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'''Предоставляет сокращения для нажатых клавиш.
Может использоваться всеми модулями, которые обрабатывают нажатия клавиш.
Author: Vladislav Naumov. [email protected]; github.com/vlad1777d; vk.com/naumovvladislav
License: CC-BY. To use this under other license contact author.
Revision: 3
'''
import bge
keyb = bge.logic.keyboard # если сюда добавить events - не будет работать
mouse = bge.logic.mouse
activated = bge.logic.KX_INPUT_JUST_ACTIVATED
deactivated = bge.logic.KX_INPUT_JUST_RELEASED
active = bge.logic.KX_INPUT_ACTIVE
absent = bge.logic.KX_INPUT_NONE
W = bge.events.WKEY
A = bge.events.AKEY
D = bge.events.DKEY
S = bge.events.SKEY
SPACE = bge.events.SPACEKEY
LSHIFT = bge.events.LEFTSHIFTKEY
LEFT_MOUSE = bge.events.LEFTMOUSE
RIGHT_MOUSE = bge.events.RIGHTMOUSE
MIDDLE_MOUSE = bge.events.MIDDLEMOUSE
WHEELUP_MOUSE = bge.events.WHEELUPMOUSE
WHEELDOWN_MOUSE = bge.events.WHEELDOWNMOUSE