mshtml: Keep reference in node returned from get_node.
[wine] / dlls / joy.cpl / joy.h
1 /*
2  * Joystick testing control panel applet resources and definitions
3  *
4  * Copyright 2012 Lucas Fialho Zawacki
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  *
20  */
21
22 #ifndef __WINE_JOYSTICKCPL__
23 #define __WINE_JOYSTICKCPL__
24
25 #include <winuser.h>
26 #include <windef.h>
27 #include <commctrl.h>
28 #include <dinput.h>
29
30 extern HMODULE hcpl;
31
32 struct Joystick {
33     IDirectInputDevice8W *device;
34     DIDEVICEINSTANCEW instance;
35     int num_buttons;
36     int num_axes;
37 };
38
39 #define TEST_MAX_BUTTONS    32
40 #define TEST_MAX_AXES       3
41
42 struct JoystickData {
43     IDirectInput8W *di;
44     struct Joystick *joysticks;
45     int num_joysticks;
46     int cur_joystick;
47     int chosen_joystick;
48     HWND buttons[TEST_MAX_BUTTONS];
49     HWND axes[TEST_MAX_AXES];
50     BOOL stop;
51 };
52
53 #define NUM_PROPERTY_PAGES 3
54
55 /* strings */
56 #define IDS_CPL_NAME        1
57 #define IDS_CPL_INFO        2
58
59 /* dialogs */
60 #define IDC_STATIC          -1
61
62 #define IDD_LIST            1000
63 #define IDD_TEST            1001
64 #define IDD_FORCEFEEDBACK   1002
65
66 #define IDC_JOYSTICKLIST    2000
67 #define IDC_BUTTONDISABLE   2001
68 #define IDC_BUTTONENABLE    2002
69 #define IDC_DISABLEDLIST    2003
70 #define IDC_TESTSELECTCOMBO 2004
71 #define IDC_TESTGROUPXY     2005
72 #define IDC_TESTGROUPRXRY   2006
73 #define IDC_TESTGROUPZRZ    2007
74
75 #define IDC_JOYSTICKBUTTON  3000
76 #define IDC_JOYSTICKAXES    4000
77
78 /* constants */
79 #define TEST_POLL_TIME      100
80
81 #define TEST_BUTTON_COL_MAX 8
82 #define TEST_BUTTON_X       15
83 #define TEST_BUTTON_Y       200
84 #define TEST_NEXT_BUTTON_X  45
85 #define TEST_NEXT_BUTTON_Y  30
86 #define TEST_BUTTON_SIZE_X  30
87 #define TEST_BUTTON_SIZE_Y  25
88
89 #define TEST_AXIS_X         65
90 #define TEST_AXIS_Y         98
91 #define TEST_NEXT_AXIS_X    115
92 #define TEST_AXIS_SIZE_X    5
93 #define TEST_AXIS_SIZE_Y    5
94 #define TEST_AXIS_MIN       -40
95 #define TEST_AXIS_MAX       40
96
97 #endif