소스 검색

adding button sensor

shuvit 6 년 전
부모
커밋
e36c52be1f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      joy_cam.py

+ 2
- 1
joy_cam.py 파일 보기

@@ -10,7 +10,8 @@ def main():
10 10
     #init
11 11
     cont = bge.logic.getCurrentController()
12 12
     own = cont.owner
13
-    aXis = cont.sensors['stickDirections'] 
13
+    aXis = cont.sensors['stickDirections']
14
+    bUtt = cont.sensors['buttons'] 
14 15
     reduction = 400000
15 16
     axisTh = 0.03 
16 17
 

Loading…
취소
저장