03 위모트(Wii Remote) 자료
03 위모트(Wii Remote) 자료
닌텐도 위모트(Wii Remote)를 이용해서 PC용 프로그램을 작성하는 것에 관한 내용을 모아 놓았다.
유용한 링크
- 적외선 펜 만드는 법
- 위모트(Wii Remote) 설정방법
- 위모트(Wii Remote) 개발 라이브러리
- GlovePIE : 위모트용 키맵핑 소프트웨어
정보
-
위모트에서 송신되는 데이터는 IR LED를 2개까지 인식함
- 위모트 개발 라이브러리의 HID Report 데이터를 참고
-
GlovePIE용 테스트 소스
- 자이로 센서와 키패드로 마우스를 움직일 수 있음
- debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ
Mouse.LeftButton = Wiimote.A
Mouse.RightButton = Wiimote.B
if Wiimote.RawForceX > 7 || Wiimote.Left then
Mouse.x = -0.01 + Mouse.x;
else if Wiimote.RawForceX < -7 || Wiimote.right then
Mouse.x = 0.01 + Mouse.x;
end if
if Wiimote.RawForceZ > 7 || Wiimote.Up then
Mouse.y = -0.01 + Mouse.y;
else if Wiimote.RawForceZ < -7 || Wiimote.Down then
Mouse.y = 0.01 + Mouse.y;
end if
History
Last edited on 12/20/2007 23:28 by kkamagui
Comments (0)