소스 검색

examples/input/03-gamepad-polling: Added some README notes about the web.

Ryan C. Gordon 1 주 전
부모
커밋
cfa31df2d5
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      examples/input/03-gamepad-polling/README.txt

+ 9 - 1
examples/input/03-gamepad-polling/README.txt

@@ -1,3 +1,11 @@
 This example code looks for the current gamepad state once per frame,
 and draws a visual representation of it. See 01-joystick-polling for the
-equivalent example code for the lower-level joystick API.
+equivalent example code for the lower-level joystick API.
+
+Please note that on the web, gamepads don't show up until you interact with
+them, so press a button to "connect" the controller.
+
+Also note that on the web, gamepad triggers are treated as buttons (either
+pressed or not) instead of axes (pressed 0 to 100 percent). This is a web
+issue, not an SDL limitation.
+