Lightweight USB stack  1.0
hid_usage_game.h
1 /* This file is the part of the LUS32 project
2  *
3  * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com>
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef _USB_HID_USAGE_H_
17 #define _USB_HID_USAGE_H_
18 
26 #define HID_PAGE_GAME 0x05
27 
28 #define HID_GAME_3D_GAME_CONTROLLER 0x01
29 #define HID_GAME_PINBALL_DEVICE 0x02
30 #define HID_GAME_GUN_DEVICE 0x03
31 #define HID_GAME_POINT_OF_VIEW 0x20
32 #define HID_GAME_TURN_LEFT_RIGHT 0x21
33 #define HID_GAME_PITCH_FWD_BACK 0x22
34 #define HID_GAME_ROLL_LEFT_RIGHT 0x23
35 #define HID_GAME_MOVE_LEFT_RIGHT 0x24
36 #define HID_GAME_MOVE_FWD_BACK 0x25
37 #define HID_GAME_MOVE_UP_DOWN 0x26
38 #define HID_GAME_LEAN_LEFT_RIGHT 0x27
39 #define HID_GAME_LEAN_FWD_BACK 0x28
40 #define HID_GAME_HEIGHT_OF_POV 0x29
41 #define HID_GAME_FLIPPER 0x2A
42 #define HID_GAME_SECONDARY_FLIPPER 0x2B
43 #define HID_GAME_BUMP 0x2C
44 #define HID_GAME_NEW_GAME 0x2D
45 #define HID_GAME_SHOOT_BALL 0x2E
46 #define HID_GAME_PLAYER 0x2F
47 #define HID_GAME_GUN_BOLT 0x30
48 #define HID_GAME_GUN_CLIP 0x31
49 #define HID_GAME_GUN_SELECTOR 0x32
50 #define HID_GAME_GUN_SINGLE_SHOT 0x33
51 #define HID_GAME_GUN_BURST 0x34
52 #define HID_GAME_GUN_AUTOMATIC 0x35
53 #define HID_GAME_GUN_SAFETY 0x36
54 #define HID_GAME_GANEPAD_FIRE_JUMP 0x37
55 #define HID_GAME_GAMEPAD_TRIGGER 0x38
56 
57 #endif
58