GameInputRacingWheelState

说明赛车方向盘的状态。

语法

typedef struct GameInputRacingWheelState {  
    GameInputRacingWheelButtons buttons;  
    int32_t patternShifterGear;  
    float wheel;  
    float throttle;  
    float brake;  
    float clutch;  
    float handbrake;  
} GameInputRacingWheelState  

成员

buttons
类型:GameInputRacingWheelButtons

赛车方向盘按钮状态。

patternShifterGear
类型:int32_t

模式转换器上选定的当前挡位。

wheel
类型:float

方向盘的位置,标准化为 [-1.0, 1.0] 范围内的值。

throttle
类型:float

油门的位置,标准化为 [0.0, 1.0] 范围内的值。

brake
类型:float

刹车的位置,标准化为 [0.0, 1.0] 范围内的值。

clutch
类型:float

离合器的位置,标准化为 [0.0, 1.0] 范围内的值。

handbrake
类型:float

手刹的位置,标准化为 [0.0, 1.0] 范围内的值。

备注

此结构用于 IGameInputReading::GetRacingWheelState 方法。

要确定赛车方向盘是否具有离合器,手刹或模式转换器,请检查 GameInputRacingWheelInfo 结构。

有关详细信息,请参阅 GameInput 读数

要求

头文件:GameInput.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

GameInput 概述
GameInput