소스 검색

Use proper polar direction when creating FF_RUMBLE effect

Uses proper polar direction of 90 degrees. Previous value probably came from mistakenly using spherical system default.
Tomasz Pakuła 2 달 전
부모
커밋
5bf8955b25
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/haptic/linux/SDL_syshaptic.c

+ 1 - 1
src/haptic/linux/SDL_syshaptic.c

@@ -880,7 +880,7 @@ static int SDL_SYS_ToFFEffect(struct ff_effect *dest, SDL_HapticEffect *src)
 
         /* Header */
         dest->type = FF_RUMBLE;
-        dest->direction = 0;
+        dest->direction = 0x4000;
 
         /* Replay */
         dest->replay.length = (leftright->length == SDL_HAPTIC_INFINITY) ? 0 : CLAMP(leftright->length);