A gamepad device connected to a system. 更多...
| import 语句: | import QtGamepad 1.12 | 
| 实例化: | QGamepad | 
Gamepad QML type is used to access the current state of gamepad hardware connected to a system
The value of the left thumbstick's X axis. The axis values range from -1.0 to 1.0.
The value of the left thumbstick's Y axis. The axis values range from -1.0 to 1.0.
This value of the right thumbstick's X axis. The axis values range from -1.0 to 1.0.
This value of the right thumbstick's Y axis. The axis values range from -1.0 to 1.0.
											The state of the left shoulder button. The value is
											
true
											
											when pressed, and
											
false
											
											when not pressed.
										
The value of the left trigger button. This trigger value ranges from 0.0 when not pressed to 1.0 when pressed completely.
													The state of the left stick button. The value is
													
true
													
													when pressed, and
													
false
													
													when not pressed. This button is usually triggered by pressing the left joystick itself.
												
														The state of the right shoulder button. The value is
														
true
														
														when pressed, and
														
false
														
														when not pressed.
													
The value of the right trigger button. This trigger value ranges from 0.0 when not pressed to 1.0 when pressed completely.
																The state of the right stick button. The value is
																
true
																
																when pressed, and
																
false
																
																when not pressed. This button is usually triggered by pressing the right joystick itself.
															
																	The state of the A button. The value is
																	
true
																	
																	when pressed, and
																	
false
																	
																	when not pressed.
																
																		The state of the B button. The value is
																		
true
																		
																		when pressed, and
																		
false
																		
																		when not pressed.
																	
																			The state of the direction pad down button. The value is
																			
true
																			
																			when pressed, and
																			
false
																			
																			when not pressed.
																		
																				The state of the direction pad left button. The value is
																				
true
																				
																				when pressed, and
																				
false
																				
																				when not pressed.
																			
																					The state of the direction pad right button. The value is
																					
true
																					
																					when pressed, and
																					
false
																					
																					when not pressed.
																				
																						The state of the Select button. The value is
																						
true
																						
																						when pressed, and
																						
false
																						
																						when not pressed. This button can sometimes be labeled as the Back button on some gamepads.
																					
																							The state of the Start button. The value is
																							
true
																							
																							when pressed, and
																							
false
																							
																							when not pressed. This button can sometimes be labeled as the Forward button on some gamepads.
																						
																								The state of the direction pad up button. The value is
																								
true
																								
																								when pressed, and
																								
false
																								
																								when not pressed.
																							
																									The state of the X button. The value is
																									
true
																									
																									when pressed, and
																									
false
																									
																									when not pressed.
																								
																										The state of the Y button. The value is
																										
true
																										
																										when pressed, and
																										
false
																										
																										when not pressed.
																									
The connectivity state of the gamepad device. If a gamepad is connected, this property will be true, otherwise false.
This property holds the deviceId of the gamepad device. Multiple gamepad devices can be connected at any given time, so setting this property defines which gamepad to use.
另请参阅 GamepadManager::connectedGamepads().
The reported name of the gamepad if one is available.