Home
last modified time | relevance | path

Searched refs:curSlot (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/components/SDL2/src/joystick/hidapi/
A DSDL_hidapi_gamecube.c126 Uint8 *curSlot; in HIDAPI_DriverGameCube_InitDevice() local
168 curSlot = packet + 1; in HIDAPI_DriverGameCube_InitDevice()
169 for (i = 0; i < MAX_CONTROLLERS; i += 1, curSlot += 9) { in HIDAPI_DriverGameCube_InitDevice()
170 ctx->wireless[i] = (curSlot[0] & 0x20) != 0; in HIDAPI_DriverGameCube_InitDevice()
175 if (curSlot[0] & 0x30) { /* 0x10 - Wired, 0x20 - Wireless */ in HIDAPI_DriverGameCube_InitDevice()
232 Uint8 *curSlot; in HIDAPI_DriverGameCube_UpdateDevice() local
244 curSlot = packet + 1; in HIDAPI_DriverGameCube_UpdateDevice()
245 for (i = 0; i < MAX_CONTROLLERS; i += 1, curSlot += 9) { in HIDAPI_DriverGameCube_UpdateDevice()
246 ctx->wireless[i] = (curSlot[0] & 0x20) != 0; in HIDAPI_DriverGameCube_UpdateDevice()
296 …if (curSlot[off] < ctx->min_axis[i*SDL_CONTROLLER_AXIS_MAX+axis]) ctx->min_axis[i*SDL_CONTROLLER_A… in HIDAPI_DriverGameCube_UpdateDevice()
[all …]

Completed in 3 milliseconds