OpenTTD Source: src/video/cocoa/cocoa_keys.h File Reference

OpenTTD Source 15.0-beta1

Data Structures | Macros | Variables
cocoa_keys.h File Reference

Mappings of Cocoa keys. More...

Go to the source code of this file.

## Data Structures
struct | CocoaVkMapping

## Macros
#define | QZ_ESCAPE 0x35
#define | QZ_F1 0x7A
#define | QZ_F2 0x78
#define | QZ_F3 0x63
#define | QZ_F4 0x76
#define | QZ_F5 0x60
#define | QZ_F6 0x61
#define | QZ_F7 0x62
#define | QZ_F8 0x64
#define | QZ_F9 0x65
#define | QZ_F10 0x6D
#define | QZ_F11 0x67
#define | QZ_F12 0x6F
#define | QZ_PRINT 0x69
#define | QZ_SCROLLOCK 0x6B
#define | QZ_PAUSE 0x71
#define | QZ_POWER 0x7F
#define | QZ_BACKQUOTE 0x0A
#define | QZ_BACKQUOTE2 0x32
#define | QZ_1 0x12
#define | QZ_2 0x13
#define | QZ_3 0x14
#define | QZ_4 0x15
#define | QZ_5 0x17
#define | QZ_6 0x16
#define | QZ_7 0x1A
#define | QZ_8 0x1C
#define | QZ_9 0x19
#define | QZ_0 0x1D
#define | QZ_MINUS 0x1B
#define | QZ_EQUALS 0x18
#define | QZ_BACKSPACE 0x33
#define | QZ_INSERT 0x72
#define | QZ_HOME 0x73
#define | QZ_PAGEUP 0x74
#define | QZ_NUMLOCK 0x47
#define | QZ_KP_EQUALS 0x51
#define | QZ_KP_DIVIDE 0x4B
#define | QZ_KP_MULTIPLY 0x43
#define | QZ_TAB 0x30
#define | QZ_q 0x0C
#define | QZ_w 0x0D
#define | QZ_e 0x0E
#define | QZ_r 0x0F
#define | QZ_t 0x11
#define | QZ_y 0x10
#define | QZ_u 0x20
#define | QZ_i 0x22
#define | QZ_o 0x1F
#define | QZ_p 0x23
#define | QZ_LEFTBRACKET 0x21
#define | QZ_RIGHTBRACKET 0x1E
#define | QZ_BACKSLASH 0x2A
#define | QZ_DELETE 0x75
#define | QZ_END 0x77
#define | QZ_PAGEDOWN 0x79
#define | QZ_KP7 0x59
#define | QZ_KP8 0x5B
#define | QZ_KP9 0x5C
#define | QZ_KP_MINUS 0x4E
#define | QZ_CAPSLOCK 0x39
#define | QZ_a 0x00
#define | QZ_s 0x01
#define | QZ_d 0x02
#define | QZ_f 0x03
#define | QZ_g 0x05
#define | QZ_h 0x04
#define | QZ_j 0x26
#define | QZ_k 0x28
#define | QZ_l 0x25
#define | QZ_SEMICOLON 0x29
#define | QZ_QUOTE 0x27
#define | QZ_RETURN 0x24
#define | QZ_KP4 0x56
#define | QZ_KP5 0x57
#define | QZ_KP6 0x58
#define | QZ_KP_PLUS 0x45
#define | QZ_LSHIFT 0x38
#define | QZ_z 0x06
#define | QZ_x 0x07
#define | QZ_c 0x08
#define | QZ_v 0x09
#define | QZ_b 0x0B
#define | QZ_n 0x2D
#define | QZ_m 0x2E
#define | QZ_COMMA 0x2B
#define | QZ_PERIOD 0x2F
#define | QZ_SLASH 0x2C
#define | QZ_RSHIFT 0x3C
#define | QZ_UP 0x7E
#define | QZ_KP1 0x53
#define | QZ_KP2 0x54
#define | QZ_KP3 0x55
#define | QZ_KP_ENTER 0x4C
#define | QZ_LCTRL 0x3B
#define | QZ_LALT 0x3A
#define | QZ_LMETA 0x37
#define | QZ_SPACE 0x31
#define | QZ_RMETA 0x36
#define | QZ_RALT 0x3D
#define | QZ_RCTRL 0x3E
#define | QZ_LEFT 0x7B
#define | QZ_DOWN 0x7D
#define | QZ_RIGHT 0x7C
#define | QZ_KP0 0x52
#define | QZ_KP_PERIOD 0x41
#define | QZ_IBOOK_ENTER 0x34
#define | QZ_IBOOK_LEFT 0x3B
#define | QZ_IBOOK_RIGHT 0x3C
#define | QZ_IBOOK_DOWN 0x3D
#define | QZ_IBOOK_UP 0x3E
#define | AS(x, z) {x, z}

## Variables
static const CocoaVkMapping | _vk_mapping []

## Detailed Description

Mappings of Cocoa keys.

Definition in file cocoa_keys.h.

## Macro Definition Documentation

## ◆ AS

#define AS | ( |  | x,
|  |  | z
| ) |  | {x, z}

Definition at line 140 of file cocoa_keys.h.

## ◆ QZ_0

#define QZ_0 0x1D

Definition at line 44 of file cocoa_keys.h.

## ◆ QZ_1

#define QZ_1 0x12

Definition at line 35 of file cocoa_keys.h.

## ◆ QZ_2

#define QZ_2 0x13

Definition at line 36 of file cocoa_keys.h.

## ◆ QZ_3

#define QZ_3 0x14

Definition at line 37 of file cocoa_keys.h.

## ◆ QZ_4

#define QZ_4 0x15

Definition at line 38 of file cocoa_keys.h.

## ◆ QZ_5

#define QZ_5 0x17

Definition at line 39 of file cocoa_keys.h.

## ◆ QZ_6

#define QZ_6 0x16

Definition at line 40 of file cocoa_keys.h.

## ◆ QZ_7

#define QZ_7 0x1A

Definition at line 41 of file cocoa_keys.h.

## ◆ QZ_8

#define QZ_8 0x1C

Definition at line 42 of file cocoa_keys.h.

## ◆ QZ_9

#define QZ_9 0x19

Definition at line 43 of file cocoa_keys.h.

## ◆ QZ_a

#define QZ_a 0x00

Definition at line 77 of file cocoa_keys.h.

## ◆ QZ_b

#define QZ_b 0x0B

Definition at line 98 of file cocoa_keys.h.

## ◆ QZ_BACKQUOTE

#define QZ_BACKQUOTE 0x0A

Definition at line 33 of file cocoa_keys.h.

## ◆ QZ_BACKQUOTE2

#define QZ_BACKQUOTE2 0x32

Definition at line 34 of file cocoa_keys.h.

## ◆ QZ_BACKSLASH

#define QZ_BACKSLASH 0x2A

Definition at line 68 of file cocoa_keys.h.

## ◆ QZ_BACKSPACE

#define QZ_BACKSPACE 0x33

Definition at line 47 of file cocoa_keys.h.

## ◆ QZ_c

#define QZ_c 0x08

Definition at line 96 of file cocoa_keys.h.

## ◆ QZ_CAPSLOCK

#define QZ_CAPSLOCK 0x39

Definition at line 76 of file cocoa_keys.h.

## ◆ QZ_COMMA

#define QZ_COMMA 0x2B

Definition at line 101 of file cocoa_keys.h.

## ◆ QZ_d

#define QZ_d 0x02

Definition at line 79 of file cocoa_keys.h.

## ◆ QZ_DELETE

#define QZ_DELETE 0x75

Definition at line 69 of file cocoa_keys.h.

## ◆ QZ_DOWN

#define QZ_DOWN 0x7D

Definition at line 122 of file cocoa_keys.h.

## ◆ QZ_e

#define QZ_e 0x0E

Definition at line 58 of file cocoa_keys.h.

## ◆ QZ_END

#define QZ_END 0x77

Definition at line 70 of file cocoa_keys.h.

## ◆ QZ_EQUALS

#define QZ_EQUALS 0x18

Definition at line 46 of file cocoa_keys.h.

## ◆ QZ_ESCAPE

#define QZ_ESCAPE 0x35

Definition at line 16 of file cocoa_keys.h.

## ◆ QZ_f

#define QZ_f 0x03

Definition at line 80 of file cocoa_keys.h.

## ◆ QZ_F1

#define QZ_F1 0x7A

Definition at line 17 of file cocoa_keys.h.

## ◆ QZ_F10

#define QZ_F10 0x6D

Definition at line 26 of file cocoa_keys.h.

## ◆ QZ_F11

#define QZ_F11 0x67

Definition at line 27 of file cocoa_keys.h.

## ◆ QZ_F12

#define QZ_F12 0x6F

Definition at line 28 of file cocoa_keys.h.

## ◆ QZ_F2

#define QZ_F2 0x78

Definition at line 18 of file cocoa_keys.h.

## ◆ QZ_F3

#define QZ_F3 0x63

Definition at line 19 of file cocoa_keys.h.

## ◆ QZ_F4

#define QZ_F4 0x76

Definition at line 20 of file cocoa_keys.h.

## ◆ QZ_F5

#define QZ_F5 0x60

Definition at line 21 of file cocoa_keys.h.

## ◆ QZ_F6

#define QZ_F6 0x61

Definition at line 22 of file cocoa_keys.h.

## ◆ QZ_F7

#define QZ_F7 0x62

Definition at line 23 of file cocoa_keys.h.

## ◆ QZ_F8

#define QZ_F8 0x64

Definition at line 24 of file cocoa_keys.h.

## ◆ QZ_F9

#define QZ_F9 0x65

Definition at line 25 of file cocoa_keys.h.

## ◆ QZ_g

#define QZ_g 0x05

Definition at line 81 of file cocoa_keys.h.

## ◆ QZ_h

#define QZ_h 0x04

Definition at line 82 of file cocoa_keys.h.

## ◆ QZ_HOME

#define QZ_HOME 0x73

Definition at line 49 of file cocoa_keys.h.

## ◆ QZ_i

#define QZ_i 0x22

Definition at line 63 of file cocoa_keys.h.

## ◆ QZ_IBOOK_DOWN

#define QZ_IBOOK_DOWN 0x3D

Definition at line 131 of file cocoa_keys.h.

## ◆ QZ_IBOOK_ENTER

#define QZ_IBOOK_ENTER 0x34

Definition at line 128 of file cocoa_keys.h.

## ◆ QZ_IBOOK_LEFT

#define QZ_IBOOK_LEFT 0x3B

Definition at line 129 of file cocoa_keys.h.

## ◆ QZ_IBOOK_RIGHT

#define QZ_IBOOK_RIGHT 0x3C

Definition at line 130 of file cocoa_keys.h.

## ◆ QZ_IBOOK_UP

#define QZ_IBOOK_UP 0x3E

Definition at line 132 of file cocoa_keys.h.

## ◆ QZ_INSERT

#define QZ_INSERT 0x72

Definition at line 48 of file cocoa_keys.h.

## ◆ QZ_j

#define QZ_j 0x26

Definition at line 83 of file cocoa_keys.h.

## ◆ QZ_k

#define QZ_k 0x28

Definition at line 84 of file cocoa_keys.h.

## ◆ QZ_KP0

#define QZ_KP0 0x52

Definition at line 124 of file cocoa_keys.h.

## ◆ QZ_KP1

#define QZ_KP1 0x53

Definition at line 108 of file cocoa_keys.h.

## ◆ QZ_KP2

#define QZ_KP2 0x54

Definition at line 109 of file cocoa_keys.h.

## ◆ QZ_KP3

#define QZ_KP3 0x55

Definition at line 110 of file cocoa_keys.h.

## ◆ QZ_KP4

#define QZ_KP4 0x56

Definition at line 89 of file cocoa_keys.h.

## ◆ QZ_KP5

#define QZ_KP5 0x57

Definition at line 90 of file cocoa_keys.h.

## ◆ QZ_KP6

#define QZ_KP6 0x58

Definition at line 91 of file cocoa_keys.h.

## ◆ QZ_KP7

#define QZ_KP7 0x59

Definition at line 72 of file cocoa_keys.h.

## ◆ QZ_KP8

#define QZ_KP8 0x5B

Definition at line 73 of file cocoa_keys.h.

## ◆ QZ_KP9

#define QZ_KP9 0x5C

Definition at line 74 of file cocoa_keys.h.

## ◆ QZ_KP_DIVIDE

#define QZ_KP_DIVIDE 0x4B

Definition at line 53 of file cocoa_keys.h.

## ◆ QZ_KP_ENTER

#define QZ_KP_ENTER 0x4C

Definition at line 111 of file cocoa_keys.h.

## ◆ QZ_KP_EQUALS

#define QZ_KP_EQUALS 0x51

Definition at line 52 of file cocoa_keys.h.

## ◆ QZ_KP_MINUS

#define QZ_KP_MINUS 0x4E

Definition at line 75 of file cocoa_keys.h.

## ◆ QZ_KP_MULTIPLY

#define QZ_KP_MULTIPLY 0x43

Definition at line 54 of file cocoa_keys.h.

## ◆ QZ_KP_PERIOD

#define QZ_KP_PERIOD 0x41

Definition at line 125 of file cocoa_keys.h.

## ◆ QZ_KP_PLUS

#define QZ_KP_PLUS 0x45

Definition at line 92 of file cocoa_keys.h.

## ◆ QZ_l

#define QZ_l 0x25

Definition at line 85 of file cocoa_keys.h.

## ◆ QZ_LALT

#define QZ_LALT 0x3A

Definition at line 113 of file cocoa_keys.h.

## ◆ QZ_LCTRL

#define QZ_LCTRL 0x3B

Definition at line 112 of file cocoa_keys.h.

## ◆ QZ_LEFT

#define QZ_LEFT 0x7B

Definition at line 121 of file cocoa_keys.h.

## ◆ QZ_LEFTBRACKET

#define QZ_LEFTBRACKET 0x21

Definition at line 66 of file cocoa_keys.h.

## ◆ QZ_LMETA

#define QZ_LMETA 0x37

Definition at line 114 of file cocoa_keys.h.

## ◆ QZ_LSHIFT

#define QZ_LSHIFT 0x38

Definition at line 93 of file cocoa_keys.h.

## ◆ QZ_m

#define QZ_m 0x2E

Definition at line 100 of file cocoa_keys.h.

## ◆ QZ_MINUS

#define QZ_MINUS 0x1B

Definition at line 45 of file cocoa_keys.h.

## ◆ QZ_n

#define QZ_n 0x2D

Definition at line 99 of file cocoa_keys.h.

## ◆ QZ_NUMLOCK

#define QZ_NUMLOCK 0x47

Definition at line 51 of file cocoa_keys.h.

## ◆ QZ_o

#define QZ_o 0x1F

Definition at line 64 of file cocoa_keys.h.

## ◆ QZ_p

#define QZ_p 0x23

Definition at line 65 of file cocoa_keys.h.

## ◆ QZ_PAGEDOWN

#define QZ_PAGEDOWN 0x79

Definition at line 71 of file cocoa_keys.h.

## ◆ QZ_PAGEUP

#define QZ_PAGEUP 0x74

Definition at line 50 of file cocoa_keys.h.

## ◆ QZ_PAUSE

#define QZ_PAUSE 0x71

Definition at line 31 of file cocoa_keys.h.

## ◆ QZ_PERIOD

#define QZ_PERIOD 0x2F

Definition at line 102 of file cocoa_keys.h.

## ◆ QZ_POWER

#define QZ_POWER 0x7F

Definition at line 32 of file cocoa_keys.h.

## ◆ QZ_PRINT

#define QZ_PRINT 0x69

Definition at line 29 of file cocoa_keys.h.

## ◆ QZ_q

#define QZ_q 0x0C

Definition at line 56 of file cocoa_keys.h.

## ◆ QZ_QUOTE

#define QZ_QUOTE 0x27

Definition at line 87 of file cocoa_keys.h.

## ◆ QZ_r

#define QZ_r 0x0F

Definition at line 59 of file cocoa_keys.h.

## ◆ QZ_RALT

#define QZ_RALT 0x3D

Definition at line 118 of file cocoa_keys.h.

## ◆ QZ_RCTRL

#define QZ_RCTRL 0x3E

Definition at line 119 of file cocoa_keys.h.

## ◆ QZ_RETURN

#define QZ_RETURN 0x24

Definition at line 88 of file cocoa_keys.h.

## ◆ QZ_RIGHT

#define QZ_RIGHT 0x7C

Definition at line 123 of file cocoa_keys.h.

## ◆ QZ_RIGHTBRACKET

#define QZ_RIGHTBRACKET 0x1E

Definition at line 67 of file cocoa_keys.h.

## ◆ QZ_RMETA

#define QZ_RMETA 0x36

Definition at line 117 of file cocoa_keys.h.

## ◆ QZ_RSHIFT

#define QZ_RSHIFT 0x3C

Definition at line 105 of file cocoa_keys.h.

## ◆ QZ_s

#define QZ_s 0x01

Definition at line 78 of file cocoa_keys.h.

## ◆ QZ_SCROLLOCK

#define QZ_SCROLLOCK 0x6B

Definition at line 30 of file cocoa_keys.h.

## ◆ QZ_SEMICOLON

#define QZ_SEMICOLON 0x29

Definition at line 86 of file cocoa_keys.h.

## ◆ QZ_SLASH

#define QZ_SLASH 0x2C

Definition at line 103 of file cocoa_keys.h.

## ◆ QZ_SPACE

#define QZ_SPACE 0x31

Definition at line 115 of file cocoa_keys.h.

## ◆ QZ_t

#define QZ_t 0x11

Definition at line 60 of file cocoa_keys.h.

## ◆ QZ_TAB

#define QZ_TAB 0x30

Definition at line 55 of file cocoa_keys.h.

## ◆ QZ_u

#define QZ_u 0x20

Definition at line 62 of file cocoa_keys.h.

## ◆ QZ_UP

#define QZ_UP 0x7E

Definition at line 107 of file cocoa_keys.h.

## ◆ QZ_v

#define QZ_v 0x09

Definition at line 97 of file cocoa_keys.h.

## ◆ QZ_w

#define QZ_w 0x0D

Definition at line 57 of file cocoa_keys.h.

## ◆ QZ_x

#define QZ_x 0x07

Definition at line 95 of file cocoa_keys.h.

## ◆ QZ_y

#define QZ_y 0x10

Definition at line 61 of file cocoa_keys.h.

## ◆ QZ_z

#define QZ_z 0x06

Definition at line 94 of file cocoa_keys.h.

## Variable Documentation

## ◆ _vk_mapping

const CocoaVkMapping _vk_mapping[]
| static

Definition at line 142 of file cocoa_keys.h.