MCPcopy
hub / github.com/Sentdex/pygta5 / Keys

Class Keys

original_project/keys.py:10–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9# main keys class
10class Keys(object):
11
12 common = None
13 standalone = False
14
15 # instance of worker class
16 keys_worker = None
17 keys_process = None
18
19 # key constants
20 direct_keys = 0x0008
21 virtual_keys = 0x0000
22 key_press = 0x0000
23 key_release = 0x0002
24
25 # mouse constants
26 mouse_move = 0x0001
27 mouse_lb_press = 0x0002
28 mouse_lb_release = 0x0004
29 mouse_rb_press = 0x0008
30 mouse_rb_release = 0x0010
31 mouse_mb_press = 0x0020
32 mouse_mb_release = 0x0040
33
34 # direct keys
35 dk = {
36 "1": 0x02,
37 "2": 0x03,
38 "3": 0x04,
39 "4": 0x05,
40 "5": 0x06,
41 "6": 0x07,
42 "7": 0x08,
43 "8": 0x09,
44 "9": 0x0A,
45 "0": 0x0B,
46
47 "NUMPAD1": 0x4F, "NP1": 0x4F,
48 "NUMPAD2": 0x50, "NP2": 0x50,
49 "NUMPAD3": 0x51, "NP3": 0x51,
50 "NUMPAD4": 0x4B, "NP4": 0x4B,
51 "NUMPAD5": 0x4C, "NP5": 0x4C,
52 "NUMPAD6": 0x4D, "NP6": 0x4D,
53 "NUMPAD7": 0x47, "NP7": 0x47,
54 "NUMPAD8": 0x48, "NP8": 0x48,
55 "NUMPAD9": 0x49, "NP9": 0x49,
56 "NUMPAD0": 0x52, "NP0": 0x52,
57 "DIVIDE": 0xB5, "NPDV": 0xB5,
58 "MULTIPLY": 0x37, "NPM": 0x37,
59 "SUBSTRACT": 0x4A, "NPS": 0x4A,
60 "ADD": 0x4E, "NPA": 0x4E,
61 "DECIMAL": 0x53, "NPDC": 0x53,
62 "NUMPADENTER": 0x9C, "NPE": 0x9C,
63
64 "A": 0x1E,
65 "B": 0x30,
66 "C": 0x2E,
67 "D": 0x20,

Callers 1

keys.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected