차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:arduino_joystick_for_x-wing_alliance [2017/01/01 16:01] V_Ltech:arduino_joystick_for_x-wing_alliance [2024/07/16 04:29] (현재) – [아두이노 조이스틱 (Arduino Joystick For X-wing Alliance)] V_L
줄 1: 줄 1:
    
 {{tag>arduino joystick for x-wing alliance}} {{tag>arduino joystick for x-wing alliance}}
-====== 엑스윙 얼라이언스를 위한 아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ====== +======아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ======
-{{INLINETOC}}+
  
 [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다. [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다.
줄 9: 줄 8:
  
 만들것이다. 만들것이다.
- 
  
   * 아날로그 조이스틱 -> USB조이스틱   * 아날로그 조이스틱 -> USB조이스틱
-  * 버튼 6개 추가 (스틱에 2개, 본체에 4개)+  * 버튼 <del>6개</del> 추가 (스틱에 2개, <del>본체에 4개</del>-> 키보드가 같이 있어야 하므로 본체 버튼은 별 필요 없는 듯
   * 쓰로틀 추가   * 쓰로틀 추가
  
줄 35: 줄 33:
  
 http://html5gamepad.com/ http://html5gamepad.com/
 +----
 +https://github.com/controllercustom/JoystickWin
  
 =====배선===== =====배선=====
줄 43: 줄 43:
   * 보라 - 3   * 보라 - 3
   * 회색 - 4   * 회색 - 4
- 
- 
  
 ====저항연결법==== ====저항연결법====
줄 61: 줄 59:
  
 =====코드===== =====코드=====
- 
  
 <file cpp> <file cpp>
줄 68: 줄 65:
  
    Arduino Leonado or micro is needed    Arduino Leonado or micro is needed
- 
- 
  
   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS
줄 91: 줄 86:
   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering
 */ */
- 
  
 // constants won't change. They're used here to // constants won't change. They're used here to
줄 167: 줄 161:
      Buttons      Buttons
   */   */
- 
  
   // read the state of pins:   // read the state of pins:
줄 188: 줄 181:
 } }
 </file> </file>
 +
 +
 +=====미세조정 하는 방법=====
 +{{:tech:arduino_joystick_for_x-wing_alliance_3509.png}}
 +=====기타=====
 +
 +윈도우 설정에서 못 찾겠으면,
 +
 +> joy.cpl
 +
 +을 실행해 볼 것.
 +
 +
 +{{:tech:arduino_joystick_for_x-wing_alliance_1455.png}}
 +
 +{{:tech:arduino_joystick_for_x-wing_alliance_3754.png}}
 +
 +
 +=====스타워즈 스쿼드론=====
 +
 +^버튼^작용^
 +|1|발사|
 +|2| 전방적 선택|
 +|3|좌측 보조무기|
 +|4|우측 보조무기|
 +|5|목표 전환|
 +|6|대응무기 발사|