Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8421f1ec
Commit
8421f1ec
authored
Apr 20, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add Windows.Gaming.Input.RacingWheel runtimeclass declaration.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
38b140f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
113 additions
and
0 deletions
+113
-0
windows.gaming.input.idl
include/windows.gaming.input.idl
+113
-0
No files found.
include/windows.gaming.input.idl
View file @
8421f1ec
...
...
@@ -38,9 +38,11 @@ namespace Windows.Gaming.Input {
typedef
enum
GameControllerButtonLabel
GameControllerButtonLabel
;
typedef
enum
GameControllerSwitchKind
GameControllerSwitchKind
;
typedef
enum
GameControllerSwitchPosition
GameControllerSwitchPosition
;
typedef
enum
RacingWheelButtons
RacingWheelButtons
;
typedef
struct
ArcadeStickReading
ArcadeStickReading
;
typedef
struct
GamepadReading
GamepadReading
;
typedef
struct
GamepadVibration
GamepadVibration
;
typedef
struct
RacingWheelReading
RacingWheelReading
;
interface
IArcadeStick
;
interface
IArcadeStickStatics
;
interface
IArcadeStickStatics2
;
...
...
@@ -50,16 +52,21 @@ namespace Windows.Gaming.Input {
interface
IGamepad2
;
interface
IGamepadStatics
;
interface
IGamepadStatics2
;
interface
IRacingWheel
;
interface
IRacingWheelStatics
;
interface
IRacingWheelStatics2
;
interface
IRawGameController
;
interface
IRawGameController2
;
runtimeclass
ArcadeStick
;
runtimeclass
Gamepad
;
runtimeclass
Headset
;
runtimeclass
RacingWheel
;
runtimeclass
RawGameController
;
declare
{
interface
Windows
.
Foundation.EventHandler<Windows.Gaming.Input.ArcadeStick
*
>
;
interface
Windows
.
Foundation.EventHandler<Windows.Gaming.Input.Gamepad
*
>
;
interface
Windows
.
Foundation.EventHandler<Windows.Gaming.Input.RacingWheel
*
>
;
interface
Windows
.
Foundation.EventHandler<Windows.Gaming.Input.RawGameController
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Gaming.Input.IGameController
*
,
Windows
.
Gaming.Input.Headset
*
>
;
interface
Windows
.
Foundation.TypedEventHandler<Windows.Gaming.Input.IGameController
*
,
Windows
.
System.UserChangedEventArgs
*
>
;
...
...
@@ -70,6 +77,10 @@ namespace Windows.Gaming.Input {
interface
Windows
.
Foundation.Collections.IIterable<Windows.Gaming.Input.Gamepad
*
>
;
interface
Windows
.
Foundation.Collections.IVectorView<Windows.Gaming.Input.Gamepad
*
>
;
interface
Windows
.
Foundation.Collections.IVector<Windows.Gaming.Input.Gamepad
*
>
;
interface
Windows
.
Foundation.Collections.IIterator<Windows.Gaming.Input.RacingWheel
*
>
;
interface
Windows
.
Foundation.Collections.IIterable<Windows.Gaming.Input.RacingWheel
*
>
;
interface
Windows
.
Foundation.Collections.IVectorView<Windows.Gaming.Input.RacingWheel
*
>
;
interface
Windows
.
Foundation.Collections.IVector<Windows.Gaming.Input.RacingWheel
*
>
;
interface
Windows
.
Foundation.Collections.IIterator<Windows.Gaming.Input.RawGameController
*
>
;
interface
Windows
.
Foundation.Collections.IIterable<Windows.Gaming.Input.RawGameController
*
>
;
interface
Windows
.
Foundation.Collections.IVectorView<Windows.Gaming.Input.RawGameController
*
>
;
...
...
@@ -224,6 +235,37 @@ namespace Windows.Gaming.Input {
UpLeft
=
8
}
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
flags
]
enum
RacingWheelButtons
{
None
=
0
x0
,
PreviousGear
=
0
x1
,
NextGear
=
0
x2
,
DPadUp
=
0
x4
,
DPadDown
=
0
x8
,
DPadLeft
=
0
x10
,
DPadRight
=
0
x20
,
Button1
=
0
x40
,
Button2
=
0
x80
,
Button3
=
0
x100
,
Button4
=
0
x200
,
Button5
=
0
x400
,
Button6
=
0
x800
,
Button7
=
0
x1000
,
Button8
=
0
x2000
,
Button9
=
0
x4000
,
Button10
=
0
x8000
,
Button11
=
0
x10000
,
Button12
=
0
x20000
,
Button13
=
0
x40000
,
Button14
=
0
x80000
,
Button15
=
0
x100000
,
Button16
=
0
x200000
,
}
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
)
]
struct
ArcadeStickReading
{
...
...
@@ -253,6 +295,19 @@ namespace Windows.Gaming.Input {
DOUBLE
RightTrigger
;
}
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
)
]
struct
RacingWheelReading
{
UINT64
Timestamp
;
Windows
.
Gaming.Input.RacingWheelButtons
Buttons
;
INT32
PatternShifterGear
;
DOUBLE
Wheel
;
DOUBLE
Throttle
;
DOUBLE
Brake
;
DOUBLE
Clutch
;
DOUBLE
Handbrake
;
}
;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
exclusiveto
(
Windows
.
Gaming.Input.ArcadeStick)
,
...
...
@@ -328,6 +383,50 @@ namespace Windows.Gaming.Input {
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
exclusiveto
(
Windows
.
Gaming.Input.RacingWheel)
,
uuid
(
f546656f
-
e106
-
4
c82
-
a90f
-
554012904b85
)
]
interface
IRacingWheel
:
IInspectable
requires
Windows
.
Gaming.Input.IGameController
{
[
propget
]
HRESULT
HasClutch
(
[
out
,
retval
]
boolean
*
value
)
;
[
propget
]
HRESULT
HasHandbrake
(
[
out
,
retval
]
boolean
*
value
)
;
[
propget
]
HRESULT
HasPatternShifter
(
[
out
,
retval
]
boolean
*
value
)
;
[
propget
]
HRESULT
MaxPatternShifterGear
(
[
out
,
retval
]
INT32
*
value
)
;
[
propget
]
HRESULT
MaxWheelAngle
(
[
out
,
retval
]
DOUBLE
*
value
)
;
[
propget
]
HRESULT
WheelMotor
(
[
out
,
retval
]
Windows
.
Gaming.Input.ForceFeedback.ForceFeedbackMotor
**
value
)
;
HRESULT
GetButtonLabel
(
[
in
]
Windows
.
Gaming.Input.RacingWheelButtons
button
,
[
out
,
retval
]
Windows
.
Gaming.Input.GameControllerButtonLabel
*
value
)
;
HRESULT
GetCurrentReading
(
[
out
,
retval
]
Windows
.
Gaming.Input.RacingWheelReading
*
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
exclusiveto
(
Windows
.
Gaming.Input.RacingWheel)
,
uuid
(
3
ac12cd5
-
581b
-
4936
-
9
f94
-
69
f1e6514c7d
)
]
interface
IRacingWheelStatics
:
IInspectable
{
[
eventadd
]
HRESULT
RacingWheelAdded
(
[
in
]
Windows
.
Foundation.EventHandler<RacingWheel
*
>
*
value
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
RacingWheelAdded
(
[
in
]
EventRegistrationToken
token
)
;
[
eventadd
]
HRESULT
RacingWheelRemoved
(
[
in
]
Windows
.
Foundation.EventHandler<RacingWheel
*
>
*
value
,
[
out
,
retval
]
EventRegistrationToken
*
token
)
;
[
eventremove
]
HRESULT
RacingWheelRemoved
(
[
in
]
EventRegistrationToken
token
)
;
[
propget
]
HRESULT
RacingWheels
(
[
out
,
retval
]
Windows
.
Foundation.Collections.IVectorView<RacingWheel
*
>
**
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
4.0
),
exclusiveto
(
Windows
.
Gaming.Input.RacingWheel)
,
uuid
(
e666bcaa
-
edfd
-
4323
-
a9f6
-
3
c384048d1ed
)
]
interface
IRacingWheelStatics2
:
IInspectable
requires
Windows
.
Gaming.Input.IRacingWheelStatics
{
HRESULT
FromGameController
(
[
in
]
Windows
.
Gaming.Input.IGameController
*
controller
,
[
out
,
retval
]
Windows
.
Gaming.Input.RacingWheel
**
value
)
;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
4.0
),
exclusiveto
(
Windows
.
Gaming.Input.RawGameController)
,
uuid
(
7
cad6d91
-
a7e1
-
4
f71
-
9
a78
-
33
e9c5dfea62
)
...
...
@@ -465,6 +564,20 @@ namespace Windows.Gaming.Input {
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
3.0
),
marshaling_behavior
(
agile
),
static
(
Windows
.
Gaming.Input.IRacingWheelStatics
,
Windows
.
Foundation.UniversalApiContract
,
3.0
),
static
(
Windows
.
Gaming.Input.IRacingWheelStatics2
,
Windows
.
Foundation.UniversalApiContract
,
4.0
),
threading
(
both
)
]
runtimeclass
RacingWheel
{
[
default
]
interface
Windows
.
Gaming.Input.IRacingWheel;
interface
Windows
.
Gaming.Input.IGameController;
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
4.0
)
]
interface
Windows
.
Gaming.Input.IGameControllerBatteryInfo;
}
[
contract
(
Windows
.
Foundation.UniversalApiContract
,
4.0
),
marshaling_behavior
(
agile
),
static
(
Windows
.
Gaming.Input.IRawGameControllerStatics
,
Windows
.
Foundation.UniversalApiContract
,
4.0
),
...
...
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