Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d0977a2b
Commit
d0977a2b
authored
Jun 27, 2012
by
Lucas Zawacki
Committed by
Alexandre Julliard
Jun 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joy.cpl: Added POV axis visualization.
parent
22e48bec
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
75 additions
and
48 deletions
+75
-48
joy.h
dlls/joy.cpl/joy.h
+2
-1
joy.rc
dlls/joy.cpl/joy.rc
+1
-0
main.c
dlls/joy.cpl/main.c
+27
-2
ar.po
po/ar.po
+1
-1
bg.po
po/bg.po
+1
-1
ca.po
po/ca.po
+1
-1
cs.po
po/cs.po
+1
-1
da.po
po/da.po
+1
-1
de.po
po/de.po
+1
-1
el.po
po/el.po
+1
-1
en.po
po/en.po
+1
-1
en_US.po
po/en_US.po
+1
-1
eo.po
po/eo.po
+1
-1
es.po
po/es.po
+1
-1
fa.po
po/fa.po
+1
-1
fi.po
po/fi.po
+1
-1
fr.po
po/fr.po
+1
-1
he.po
po/he.po
+1
-1
hi.po
po/hi.po
+1
-1
hu.po
po/hu.po
+1
-1
it.po
po/it.po
+1
-1
ja.po
po/ja.po
+1
-1
ko.po
po/ko.po
+1
-1
lt.po
po/lt.po
+1
-1
ml.po
po/ml.po
+1
-1
nb_NO.po
po/nb_NO.po
+1
-1
nl.po
po/nl.po
+1
-1
or.po
po/or.po
+1
-1
pa.po
po/pa.po
+1
-1
pl.po
po/pl.po
+1
-1
pt_BR.po
po/pt_BR.po
+1
-1
pt_PT.po
po/pt_PT.po
+1
-1
rm.po
po/rm.po
+1
-1
ro.po
po/ro.po
+1
-1
ru.po
po/ru.po
+1
-1
sk.po
po/sk.po
+1
-1
sl.po
po/sl.po
+1
-1
sr_RS@cyrillic.po
po/sr_RS@cyrillic.po
+1
-1
sr_RS@latin.po
po/sr_RS@latin.po
+1
-1
sv.po
po/sv.po
+1
-1
te.po
po/te.po
+1
-1
th.po
po/th.po
+1
-1
tr.po
po/tr.po
+1
-1
uk.po
po/uk.po
+1
-1
wa.po
po/wa.po
+1
-1
wine.pot
po/wine.pot
+1
-1
zh_CN.po
po/zh_CN.po
+1
-1
zh_TW.po
po/zh_TW.po
+1
-1
No files found.
dlls/joy.cpl/joy.h
View file @
d0977a2b
...
...
@@ -37,7 +37,7 @@ struct Joystick {
};
#define TEST_MAX_BUTTONS 32
#define TEST_MAX_AXES
3
#define TEST_MAX_AXES
4
struct
JoystickData
{
IDirectInput8W
*
di
;
...
...
@@ -71,6 +71,7 @@ struct JoystickData {
#define IDC_TESTGROUPXY 2005
#define IDC_TESTGROUPRXRY 2006
#define IDC_TESTGROUPZRZ 2007
#define IDC_TESTGROUPPOV 2008
#define IDC_JOYSTICKBUTTON 3000
#define IDC_JOYSTICKAXES 4000
...
...
dlls/joy.cpl/joy.rc
View file @
d0977a2b
...
...
@@ -51,6 +51,7 @@ FONT 8, "Ms Shell Dlg"
GROUPBOX "", IDC_TESTGROUPXY, 15, 30, 60, 60
GROUPBOX "", IDC_TESTGROUPRXRY, 92, 30, 60, 60
GROUPBOX "", IDC_TESTGROUPZRZ, 169, 30, 60, 60
GROUPBOX "", IDC_TESTGROUPPOV, 246, 30, 60, 60
}
IDD_FORCEFEEDBACK DIALOG 0, 0, 320, 220
...
...
dlls/joy.cpl/main.c
View file @
d0977a2b
...
...
@@ -212,6 +212,19 @@ static DWORD WINAPI input_thread(void *param)
DIJOYSTATE
state
;
struct
JoystickData
*
data
=
param
;
/* Setup POV as clock positions
* 0
* 31500 4500
* 27000 -1 9000
* 22500 13500
* 18000
*/
int
ma
=
TEST_AXIS_MAX
;
int
pov_val
[
9
]
=
{
0
,
4500
,
9000
,
13500
,
18000
,
22500
,
27000
,
31500
,
-
1
};
int
pov_pos
[
9
][
2
]
=
{
{
0
,
-
ma
},
{
ma
/
2
,
-
ma
/
2
},
{
ma
,
0
},
{
ma
/
2
,
ma
/
2
},
{
0
,
ma
},
{
-
ma
/
2
,
ma
/
2
},
{
-
ma
,
0
},
{
-
ma
/
2
,
-
ma
/
2
},
{
0
,
0
}
};
ZeroMemory
(
&
state
,
sizeof
(
state
));
while
(
!
data
->
stop
)
...
...
@@ -234,6 +247,16 @@ static DWORD WINAPI input_thread(void *param)
axes_pos
[
2
][
0
]
=
state
.
lZ
;
axes_pos
[
2
][
1
]
=
state
.
lRz
;
/* Set pov values */
for
(
i
=
0
;
i
<
sizeof
(
pov_val
)
/
sizeof
(
pov_val
[
0
]);
i
++
)
{
if
(
state
.
rgdwPOV
[
0
]
==
pov_val
[
i
])
{
axes_pos
[
3
][
0
]
=
pov_pos
[
i
][
0
];
axes_pos
[
3
][
1
]
=
pov_pos
[
i
][
1
];
}
}
for
(
i
=
0
;
i
<
TEST_MAX_AXES
;
i
++
)
SetWindowPos
(
data
->
axes
[
i
],
0
,
TEST_AXIS_X
+
TEST_NEXT_AXIS_X
*
i
+
axes_pos
[
i
][
0
],
...
...
@@ -309,8 +332,10 @@ static void draw_joystick_axes(HWND hwnd, struct JoystickData* data)
DIPROPRANGE
propRange
;
HINSTANCE
hinst
=
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
);
static
const
WCHAR
button_class
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
'\0'
};
static
const
WCHAR
axes_names
[
TEST_MAX_AXES
][
7
]
=
{
{
'X'
,
','
,
'Y'
,
'\0'
},
{
'R'
,
'x'
,
','
,
'R'
,
'y'
,
'\0'
},
{
'Z'
,
','
,
'R'
,
'z'
,
'\0'
}
};
static
const
DWORD
axes_idc
[
TEST_MAX_AXES
]
=
{
IDC_TESTGROUPXY
,
IDC_TESTGROUPRXRY
,
IDC_TESTGROUPZRZ
};
static
const
WCHAR
axes_names
[
TEST_MAX_AXES
][
7
]
=
{
{
'X'
,
','
,
'Y'
,
'\0'
},
{
'R'
,
'x'
,
','
,
'R'
,
'y'
,
'\0'
},
{
'Z'
,
','
,
'R'
,
'z'
,
'\0'
},
{
'P'
,
'O'
,
'V'
,
'\0'
}
};
static
const
DWORD
axes_idc
[
TEST_MAX_AXES
]
=
{
IDC_TESTGROUPXY
,
IDC_TESTGROUPRXRY
,
IDC_TESTGROUPZRZ
,
IDC_TESTGROUPPOV
};
/* Set axis range to ease the GUI visualization */
for
(
i
=
0
;
i
<
data
->
num_joysticks
;
i
++
)
...
...
po/ar.po
View file @
d0977a2b
...
...
@@ -3424,7 +3424,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/bg.po
View file @
d0977a2b
...
...
@@ -3450,7 +3450,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/ca.po
View file @
d0977a2b
...
...
@@ -3499,7 +3499,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/cs.po
View file @
d0977a2b
...
...
@@ -3498,7 +3498,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/da.po
View file @
d0977a2b
...
...
@@ -3470,7 +3470,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/de.po
View file @
d0977a2b
...
...
@@ -3457,7 +3457,7 @@ msgstr "Joystick testen"
msgid "Buttons"
msgstr "Tasten"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Force Feedback testen"
...
...
po/el.po
View file @
d0977a2b
...
...
@@ -3384,7 +3384,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/en.po
View file @
d0977a2b
...
...
@@ -3448,7 +3448,7 @@ msgstr "Test Joystick"
msgid "Buttons"
msgstr "Buttons"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Test Force Feedback"
...
...
po/en_US.po
View file @
d0977a2b
...
...
@@ -3450,7 +3450,7 @@ msgstr "Test Joystick"
msgid "Buttons"
msgstr "Buttons"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Test Force Feedback"
...
...
po/eo.po
View file @
d0977a2b
...
...
@@ -3365,7 +3365,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/es.po
View file @
d0977a2b
...
...
@@ -3484,7 +3484,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/fa.po
View file @
d0977a2b
...
...
@@ -3424,7 +3424,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/fi.po
View file @
d0977a2b
...
...
@@ -3445,7 +3445,7 @@ msgstr "Testaa joystickia"
msgid "Buttons"
msgstr "Painikkeet"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Testaa voimapalautetta"
...
...
po/fr.po
View file @
d0977a2b
...
...
@@ -3474,7 +3474,7 @@ msgstr "Tester le joystick"
msgid "Buttons"
msgstr "Boutons"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Tester le retour de force"
...
...
po/he.po
View file @
d0977a2b
...
...
@@ -3452,7 +3452,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/hi.po
View file @
d0977a2b
...
...
@@ -3362,7 +3362,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/hu.po
View file @
d0977a2b
...
...
@@ -3486,7 +3486,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/it.po
View file @
d0977a2b
...
...
@@ -3499,7 +3499,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/ja.po
View file @
d0977a2b
...
...
@@ -3442,7 +3442,7 @@ msgstr "ジョイスティックのテスト"
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "フォース フィードバックのテスト"
...
...
po/ko.po
View file @
d0977a2b
...
...
@@ -3451,7 +3451,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/lt.po
View file @
d0977a2b
...
...
@@ -3458,7 +3458,7 @@ msgstr "Testuoti vairasvirtę"
msgid "Buttons"
msgstr "Mygtukai"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Testuoti „Force Feedback“"
...
...
po/ml.po
View file @
d0977a2b
...
...
@@ -3362,7 +3362,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/nb_NO.po
View file @
d0977a2b
...
...
@@ -3596,7 +3596,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/nl.po
View file @
d0977a2b
...
...
@@ -3511,7 +3511,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/or.po
View file @
d0977a2b
...
...
@@ -3362,7 +3362,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/pa.po
View file @
d0977a2b
...
...
@@ -3362,7 +3362,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/pl.po
View file @
d0977a2b
...
...
@@ -3470,7 +3470,7 @@ msgstr "Testuj Joystick"
msgid "Buttons"
msgstr "Przyciski"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Testuj odczucie siły zwrotnej"
...
...
po/pt_BR.po
View file @
d0977a2b
...
...
@@ -3497,7 +3497,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/pt_PT.po
View file @
d0977a2b
...
...
@@ -3496,7 +3496,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/rm.po
View file @
d0977a2b
...
...
@@ -3390,7 +3390,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/ro.po
View file @
d0977a2b
...
...
@@ -3456,7 +3456,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/ru.po
View file @
d0977a2b
...
...
@@ -3463,7 +3463,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/sk.po
View file @
d0977a2b
...
...
@@ -3398,7 +3398,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/sl.po
View file @
d0977a2b
...
...
@@ -3488,7 +3488,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/sr_RS@cyrillic.po
View file @
d0977a2b
...
...
@@ -3481,7 +3481,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/sr_RS@latin.po
View file @
d0977a2b
...
...
@@ -3559,7 +3559,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/sv.po
View file @
d0977a2b
...
...
@@ -3440,7 +3440,7 @@ msgstr "Testa joysticken"
msgid "Buttons"
msgstr "Knappar"
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr "Testa kraftåterkoppling"
...
...
po/te.po
View file @
d0977a2b
...
...
@@ -3362,7 +3362,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/th.po
View file @
d0977a2b
...
...
@@ -3401,7 +3401,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/tr.po
View file @
d0977a2b
...
...
@@ -3355,7 +3355,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/uk.po
View file @
d0977a2b
...
...
@@ -3477,7 +3477,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/wa.po
View file @
d0977a2b
...
...
@@ -3409,7 +3409,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/wine.pot
View file @
d0977a2b
...
...
@@ -3324,7 +3324,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/zh_CN.po
View file @
d0977a2b
...
...
@@ -3375,7 +3375,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
po/zh_TW.po
View file @
d0977a2b
...
...
@@ -3379,7 +3379,7 @@ msgstr ""
msgid "Buttons"
msgstr ""
#: joy.rc:5
8
#: joy.rc:5
9
msgid "Test Force Feedback"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment