@@ -239,12 +239,9 @@ impl IArcadeStick {
239
239
}
240
240
}
241
241
RT_CLASS ! { class ArcadeStick : IArcadeStick }
242
- impl RtActivatable < IArcadeStickStatics2 > for ArcadeStick { }
243
242
impl RtActivatable < IArcadeStickStatics > for ArcadeStick { }
243
+ impl RtActivatable < IArcadeStickStatics2 > for ArcadeStick { }
244
244
impl ArcadeStick {
245
- #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < ArcadeStick > > { unsafe {
246
- <Self as RtActivatable < IArcadeStickStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
247
- } }
248
245
#[ inline] pub fn add_arcade_stick_added ( value : & super :: super :: foundation:: EventHandler < ArcadeStick > ) -> Result < super :: super :: foundation:: EventRegistrationToken > { unsafe {
249
246
<Self as RtActivatable < IArcadeStickStatics > >:: get_activation_factory ( ) . add_arcade_stick_added ( value)
250
247
} }
@@ -260,6 +257,9 @@ impl ArcadeStick {
260
257
#[ inline] pub fn get_arcade_sticks ( ) -> Result < ComPtr < super :: super :: foundation:: collections:: IVectorView < ArcadeStick > > > { unsafe {
261
258
<Self as RtActivatable < IArcadeStickStatics > >:: get_activation_factory ( ) . get_arcade_sticks ( )
262
259
} }
260
+ #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < ArcadeStick > > { unsafe {
261
+ <Self as RtActivatable < IArcadeStickStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
262
+ } }
263
263
}
264
264
DEFINE_CLSID ! ( ArcadeStick ( & [ 87 , 105 , 110 , 100 , 111 , 119 , 115 , 46 , 71 , 97 , 109 , 105 , 110 , 103 , 46 , 73 , 110 , 112 , 117 , 116 , 46 , 65 , 114 , 99 , 97 , 100 , 101 , 83 , 116 , 105 , 99 , 107 , 0 ] ) [ CLSID_ArcadeStick ] ) ;
265
265
RT_ENUM ! { enum ArcadeStickButtons : u32 {
@@ -502,12 +502,9 @@ impl IGamepad {
502
502
}
503
503
}
504
504
RT_CLASS ! { class Gamepad : IGamepad }
505
- impl RtActivatable < IGamepadStatics2 > for Gamepad { }
506
505
impl RtActivatable < IGamepadStatics > for Gamepad { }
506
+ impl RtActivatable < IGamepadStatics2 > for Gamepad { }
507
507
impl Gamepad {
508
- #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < Gamepad > > { unsafe {
509
- <Self as RtActivatable < IGamepadStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
510
- } }
511
508
#[ inline] pub fn add_gamepad_added ( value : & super :: super :: foundation:: EventHandler < Gamepad > ) -> Result < super :: super :: foundation:: EventRegistrationToken > { unsafe {
512
509
<Self as RtActivatable < IGamepadStatics > >:: get_activation_factory ( ) . add_gamepad_added ( value)
513
510
} }
@@ -523,6 +520,9 @@ impl Gamepad {
523
520
#[ inline] pub fn get_gamepads ( ) -> Result < ComPtr < super :: super :: foundation:: collections:: IVectorView < Gamepad > > > { unsafe {
524
521
<Self as RtActivatable < IGamepadStatics > >:: get_activation_factory ( ) . get_gamepads ( )
525
522
} }
523
+ #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < Gamepad > > { unsafe {
524
+ <Self as RtActivatable < IGamepadStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
525
+ } }
526
526
}
527
527
DEFINE_CLSID ! ( Gamepad ( & [ 87 , 105 , 110 , 100 , 111 , 119 , 115 , 46 , 71 , 97 , 109 , 105 , 110 , 103 , 46 , 73 , 110 , 112 , 117 , 116 , 46 , 71 , 97 , 109 , 101 , 112 , 97 , 100 , 0 ] ) [ CLSID_Gamepad ] ) ;
528
528
DEFINE_IID ! ( IID_IGamepad2 , 1008110013 , 22805 , 16965 , 176 , 192 , 200 , 159 , 174 , 3 , 8 , 255 ) ;
@@ -664,12 +664,9 @@ impl IRacingWheel {
664
664
}
665
665
}
666
666
RT_CLASS ! { class RacingWheel : IRacingWheel }
667
- impl RtActivatable < IRacingWheelStatics2 > for RacingWheel { }
668
667
impl RtActivatable < IRacingWheelStatics > for RacingWheel { }
668
+ impl RtActivatable < IRacingWheelStatics2 > for RacingWheel { }
669
669
impl RacingWheel {
670
- #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < RacingWheel > > { unsafe {
671
- <Self as RtActivatable < IRacingWheelStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
672
- } }
673
670
#[ inline] pub fn add_racing_wheel_added ( value : & super :: super :: foundation:: EventHandler < RacingWheel > ) -> Result < super :: super :: foundation:: EventRegistrationToken > { unsafe {
674
671
<Self as RtActivatable < IRacingWheelStatics > >:: get_activation_factory ( ) . add_racing_wheel_added ( value)
675
672
} }
@@ -685,6 +682,9 @@ impl RacingWheel {
685
682
#[ inline] pub fn get_racing_wheels ( ) -> Result < ComPtr < super :: super :: foundation:: collections:: IVectorView < RacingWheel > > > { unsafe {
686
683
<Self as RtActivatable < IRacingWheelStatics > >:: get_activation_factory ( ) . get_racing_wheels ( )
687
684
} }
685
+ #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < RacingWheel > > { unsafe {
686
+ <Self as RtActivatable < IRacingWheelStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
687
+ } }
688
688
}
689
689
DEFINE_CLSID ! ( RacingWheel ( & [ 87 , 105 , 110 , 100 , 111 , 119 , 115 , 46 , 71 , 97 , 109 , 105 , 110 , 103 , 46 , 73 , 110 , 112 , 117 , 116 , 46 , 82 , 97 , 99 , 105 , 110 , 103 , 87 , 104 , 101 , 101 , 108 , 0 ] ) [ CLSID_RacingWheel ] ) ;
690
690
RT_ENUM ! { enum RacingWheelButtons : u32 {
@@ -909,12 +909,9 @@ impl IUINavigationController {
909
909
}
910
910
}
911
911
RT_CLASS ! { class UINavigationController : IUINavigationController }
912
- impl RtActivatable < IUINavigationControllerStatics2 > for UINavigationController { }
913
912
impl RtActivatable < IUINavigationControllerStatics > for UINavigationController { }
913
+ impl RtActivatable < IUINavigationControllerStatics2 > for UINavigationController { }
914
914
impl UINavigationController {
915
- #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < UINavigationController > > { unsafe {
916
- <Self as RtActivatable < IUINavigationControllerStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
917
- } }
918
915
#[ inline] pub fn add_uinavigation_controller_added ( value : & super :: super :: foundation:: EventHandler < UINavigationController > ) -> Result < super :: super :: foundation:: EventRegistrationToken > { unsafe {
919
916
<Self as RtActivatable < IUINavigationControllerStatics > >:: get_activation_factory ( ) . add_uinavigation_controller_added ( value)
920
917
} }
@@ -930,6 +927,9 @@ impl UINavigationController {
930
927
#[ inline] pub fn get_uinavigation_controllers ( ) -> Result < ComPtr < super :: super :: foundation:: collections:: IVectorView < UINavigationController > > > { unsafe {
931
928
<Self as RtActivatable < IUINavigationControllerStatics > >:: get_activation_factory ( ) . get_uinavigation_controllers ( )
932
929
} }
930
+ #[ inline] pub fn from_game_controller ( gameController : & IGameController ) -> Result < ComPtr < UINavigationController > > { unsafe {
931
+ <Self as RtActivatable < IUINavigationControllerStatics2 > >:: get_activation_factory ( ) . from_game_controller ( gameController)
932
+ } }
933
933
}
934
934
DEFINE_CLSID ! ( UINavigationController ( & [ 87 , 105 , 110 , 100 , 111 , 119 , 115 , 46 , 71 , 97 , 109 , 105 , 110 , 103 , 46 , 73 , 110 , 112 , 117 , 116 , 46 , 85 , 73 , 78 , 97 , 118 , 105 , 103 , 97 , 116 , 105 , 111 , 110 , 67 , 111 , 110 , 116 , 114 , 111 , 108 , 108 , 101 , 114 , 0 ] ) [ CLSID_UINavigationController ] ) ;
935
935
DEFINE_IID ! ( IID_IUINavigationControllerStatics , 789877514 , 63224 , 19016 , 141 , 137 , 148 , 120 , 108 , 202 , 12 , 46 ) ;
@@ -1003,12 +1003,9 @@ impl ICustomGameControllerFactory {
1003
1003
}
1004
1004
}
1005
1005
RT_CLASS ! { static class GameControllerFactoryManager }
1006
- impl RtActivatable < IGameControllerFactoryManagerStatics2 > for GameControllerFactoryManager { }
1007
1006
impl RtActivatable < IGameControllerFactoryManagerStatics > for GameControllerFactoryManager { }
1007
+ impl RtActivatable < IGameControllerFactoryManagerStatics2 > for GameControllerFactoryManager { }
1008
1008
impl GameControllerFactoryManager {
1009
- #[ inline] pub fn try_get_factory_controller_from_game_controller ( factory : & ICustomGameControllerFactory , gameController : & super :: IGameController ) -> Result < ComPtr < super :: IGameController > > { unsafe {
1010
- <Self as RtActivatable < IGameControllerFactoryManagerStatics2 > >:: get_activation_factory ( ) . try_get_factory_controller_from_game_controller ( factory, gameController)
1011
- } }
1012
1009
#[ inline] pub fn register_custom_factory_for_gip_interface ( factory : & ICustomGameControllerFactory , interfaceId : Guid ) -> Result < ( ) > { unsafe {
1013
1010
<Self as RtActivatable < IGameControllerFactoryManagerStatics > >:: get_activation_factory ( ) . register_custom_factory_for_gip_interface ( factory, interfaceId)
1014
1011
} }
@@ -1018,6 +1015,9 @@ impl GameControllerFactoryManager {
1018
1015
#[ inline] pub fn register_custom_factory_for_xusb_type ( factory : & ICustomGameControllerFactory , xusbType : XusbDeviceType , xusbSubtype : XusbDeviceSubtype ) -> Result < ( ) > { unsafe {
1019
1016
<Self as RtActivatable < IGameControllerFactoryManagerStatics > >:: get_activation_factory ( ) . register_custom_factory_for_xusb_type ( factory, xusbType, xusbSubtype)
1020
1017
} }
1018
+ #[ inline] pub fn try_get_factory_controller_from_game_controller ( factory : & ICustomGameControllerFactory , gameController : & super :: IGameController ) -> Result < ComPtr < super :: IGameController > > { unsafe {
1019
+ <Self as RtActivatable < IGameControllerFactoryManagerStatics2 > >:: get_activation_factory ( ) . try_get_factory_controller_from_game_controller ( factory, gameController)
1020
+ } }
1021
1021
}
1022
1022
DEFINE_CLSID ! ( GameControllerFactoryManager ( & [ 87 , 105 , 110 , 100 , 111 , 119 , 115 , 46 , 71 , 97 , 109 , 105 , 110 , 103 , 46 , 73 , 110 , 112 , 117 , 116 , 46 , 67 , 117 , 115 , 116 , 111 , 109 , 46 , 71 , 97 , 109 , 101 , 67 , 111 , 110 , 116 , 114 , 111 , 108 , 108 , 101 , 114 , 70 , 97 , 99 , 116 , 111 , 114 , 121 , 77 , 97 , 110 , 97 , 103 , 101 , 114 , 0 ] ) [ CLSID_GameControllerFactoryManager ] ) ;
1023
1023
DEFINE_IID ! ( IID_IGameControllerFactoryManagerStatics , 919299811 , 53409 , 18822 , 162 , 76 , 64 , 177 , 55 , 222 , 186 , 158 ) ;
0 commit comments