Header

  1. View current page

    kkamagui의 프로그래밍 작업실

Profile_image?t=1221830958&type=big
온갖 자료가 난무하는 kkamagui의 Springnote~!!!
74

03 위모트(Wii Remote) 자료

03 위모트(Wii Remote) 자료

닌텐도 위모트(Wii Remote)를 이용해서 PC용 프로그램을 작성하는 것에 관한 내용을 모아 놓았다.

 

유용한 링크

 

정보

  • 위모트에서 송신되는 데이터는 IR LED를 2개까지 인식함

    • 위모트 개발 라이브러리의 HID Report 데이터를 참고
  • GlovePIE용 테스트 소스

    • 자이로 센서와 키패드로 마우스를 움직일 수 있음
  1. 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)

You must log in to leave a comment. Please sign in.