소스 검색

This was intended to be Uint8

Sam Lantinga 3 년 전
부모
커밋
b6b3fb0023
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/joystick/hidapi/SDL_hidapi_wii.c

+ 2 - 2
src/joystick/hidapi/SDL_hidapi_wii.c

@@ -280,13 +280,13 @@ static SDL_bool ReadRegister(SDL_DriverWii_Context *ctx, Uint32 address, int siz
 
 static SDL_bool SendExtensionIdentify1(SDL_DriverWii_Context *ctx, SDL_bool sync)
 {
-    unsigned char data = 0x55;
+    Uint8 data = 0x55;
     return WriteRegister(ctx, 0xA400F0, &data, sizeof(data), sync);
 }
 
 static SDL_bool SendExtensionIdentify2(SDL_DriverWii_Context *ctx, SDL_bool sync)
 {
-    unsigned char data = 0x00;
+    Uint8 data = 0x00;
     return WriteRegister(ctx, 0xA400FB, &data, sizeof(data), sync);
 }