Lines Matching refs:Uint8
104 Uint8 rgucButtons[2];
105 Uint8 ucStickHat;
106 Uint8 rgucJoystickLeft[2];
107 Uint8 rgucJoystickRight[2];
112 Uint8 rgucButtons[2];
113 Uint8 ucStickHat;
120 Uint8 ucCounter;
121 Uint8 ucBatteryAndConnection;
122 Uint8 rgucButtons[3];
123 Uint8 rgucJoystickLeft[3];
124 Uint8 rgucJoystickRight[3];
125 Uint8 ucVibrationCode;
146 Uint8 ucLength;
153 Uint8 ucSubcommandAck;
154 Uint8 ucSubcommandID;
158 Uint8 rgucSubcommandData[k_unSubcommandDataBytes];
162 Uint8 rgucReadData[k_unSubcommandDataBytes - sizeof(SwitchSPIOpData_t)];
166 Uint8 rgucFirmwareVersion[2];
167 Uint8 ucDeviceType;
168 Uint8 ucFiller1;
169 Uint8 rgucMACAddress[6];
170 Uint8 ucFiller2;
171 Uint8 ucColorLocation;
178 Uint8 rgucData[4];
183 Uint8 ucPacketType;
184 Uint8 ucPacketNumber;
192 Uint8 ucSubcommandID;
193 …Uint8 rgucSubcommandData[k_unSwitchOutputPacketDataLength - sizeof(SwitchCommonOutputPacket_t) - 1…
198 Uint8 ucPacketType;
199 Uint8 ucProprietaryID;
201 Uint8 rgucProprietaryData[k_unSwitchOutputPacketDataLength - 1 - 1];
212 Uint8 m_nCommandNumber;
214 Uint8 m_rgucReadBuffer[k_unSwitchMaxOutputPacketLength];
308 static int WriteOutput(SDL_DriverSwitch_Context *ctx, const Uint8 *data, int size) in WriteOutput()
366 …d(SDL_DriverSwitch_Context *ctx, ESwitchSubcommandIDs ucCommandID, Uint8 *pBuf, Uint8 ucLen, Switc… in ConstructSubcommand()
381 static SDL_bool WritePacket(SDL_DriverSwitch_Context *ctx, void *pBuf, Uint8 ucLen) in WritePacket()
383 Uint8 rgucBuf[k_unSwitchMaxOutputPacketLength]; in WritePacket()
394 ucLen = (Uint8)unWriteSize; in WritePacket()
396 return (WriteOutput(ctx, (Uint8 *)pBuf, ucLen) >= 0); in WritePacket()
399 …d(SDL_DriverSwitch_Context *ctx, ESwitchSubcommandIDs ucCommandID, Uint8 *pBuf, Uint8 ucLen, Switc… in WriteSubcommand()
421 …DriverSwitch_Context *ctx, ESwitchProprietaryCommandIDs ucCommand, Uint8 *pBuf, Uint8 ucLen, SDL_b… in WriteProprietary()
457 static void EncodeRumble(SwitchRumbleData_t *pRumble, Uint16 usHighFreq, Uint8 ucHighFreqAmp, Uint8… in EncodeRumble()
490 return WritePacket(ctx, (Uint8 *)&ctx->m_RumblePacket, sizeof(ctx->m_RumblePacket)); in WriteRumble()
513 static SDL_bool SetVibrationEnabled(SDL_DriverSwitch_Context *ctx, Uint8 enabled) in SetVibrationEnabled()
518 static SDL_bool SetInputMode(SDL_DriverSwitch_Context *ctx, Uint8 input_mode) in SetInputMode()
523 static SDL_bool SetHomeLED(SDL_DriverSwitch_Context *ctx, Uint8 brightness) in SetHomeLED()
525 Uint8 ucLedIntensity = 0; in SetHomeLED()
526 Uint8 rgucBuffer[4]; in SetHomeLED()
532 ucLedIntensity = (Uint8)SDL_ceilf(0xF * SDL_powf((float)brightness / 100.f, 2.13f)); in SetHomeLED()
544 static SDL_bool SetSlotLED(SDL_DriverSwitch_Context *ctx, Uint8 slot) in SetSlotLED()
546 Uint8 led_data = (1 << slot); in SetSlotLED()
550 static SDL_bool LoadStickCalibration(SDL_DriverSwitch_Context *ctx, Uint8 input_mode) in LoadStickCalibration()
552 Uint8 *pStickCal; in LoadStickCalibration()
663 static Uint8 RemapButton(SDL_DriverSwitch_Context *ctx, Uint8 button) in RemapButton()
715 Uint8 input_mode; in HIDAPI_DriverSwitch_OpenJoystick()
831 const Uint8 k_ucHighFreqAmp = 0xBE; in HIDAPI_DriverSwitch_ActuallyRumbleJoystick()
832 const Uint8 k_ucLowFreq = 0x3D; in HIDAPI_DriverSwitch_ActuallyRumbleJoystick()
928 Uint8 data = packet->rgucButtons[0]; in HandleInputOnlyControllerState()
944 Uint8 data = packet->rgucButtons[1]; in HandleInputOnlyControllerState()
1026 Uint8 data = packet->rgucButtons[0]; in HandleSimpleControllerState()
1042 Uint8 data = packet->rgucButtons[1]; in HandleSimpleControllerState()
1114 Uint8 data = packet->controllerState.rgucButtons[0]; in HandleFullControllerState()
1125 Uint8 data = packet->controllerState.rgucButtons[1]; in HandleFullControllerState()
1135 Uint8 data = packet->controllerState.rgucButtons[2]; in HandleFullControllerState()