+ Reply to Thread
Results 1 to 3 of 3

Thread: [Wiimote Mod] GlovePIE e Script

  1. #1
    Join Date
    Jul 2006
    Location
    casa mia =_=
    Age
    22
    Posts
    859
    Downloads
    0
    Uploads
    0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Potenza rep
    5

    [Wiimote Mod] GlovePIE e Script

    Grazie a [Only registered and activated users can see links. ], un programma che permette di utilizzare il wiimote come un mouse, è ora possibile utilizzare il controller bluetooth anche per altre funzioni grazie appositi script :
    • [Only registered and activated users can see links. ] - Come mouse ATTENZIONE : Richiede Sensor Bar
    • [Only registered and activated users can see links. ] - Come prima, solo che qui si può anche ruotare il wiimote per muovere il mouse
    • [Only registered and activated users can see links. ] - Connetti due Wiimote per utilizzare due mouse. ATTENZIONE : Richiede Sensor Bar
    • [Only registered and activated users can see links. ] - Driver per ruotare le due assi e gli 11 pulsanti per emulare un joystick
    • [Only registered and activated users can see links. ] - Controlli per Zelda - Ocarina of Time (N64)
    • [Only registered and activated users can see links. ] - Controlli per Goldeneye (N64)
    • [Only registered and activated users can see links. ] - Controlli per Nes
    Non ancora pubblicato su file, ecco lo script per utilizzare lo speaker del wiimote:

    Code:
    // Carl Kenner's Wiimote Speaker Test script! Version 2
    // A = start sound, B = stop sound
    // Minus = decrease sample frequency
    // Plus = increase sample frequency
    // It takes a short time to start (due to delays built into Poke)
     
    // Change the next line to set the rate at which sound data is sent
    // BUT it must be low enough for the wiimote to respond to the B button
    // it may depend on your PC speed. Must be at least 91 for freq 13.
    pie.FrameRate = 120 Hz
     
    if not var.initialized then
    var.freq = 13 // Set sample rate = 3640 Hz (so computer can keep up)
    var.volume = 0x40 // volume = 40 ??? Seems to be about max
    debug = var.freq
    var.initialized = true
    end if
     
    if var.On and (not Wiimote.One) and (not Wiimote.Two) then
    // Report 18, send 20 bytes, square wave, 1/4 sample rate freq
    WiimoteSend(1, 0x18, 20 shl 3, 0xCC,0x33,0xCC,0x33,0xCC,0x33,0xCC,0x33,0xCC,0x33, 0xCC,0x33,0xCC,0x33,0xCC,0x33,0xCC,0x33,0xCC,0x33)
    else if var.On and Wiimote.One then
    // Report 18, send 20 bytes, square wave, 1/2 sample rate freq
    WiimoteSend(1, 0x18, 20 shl 3, 0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3, 0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3)
    else if var.On and Wiimote.Two then
    // Report 18, send 20 bytes, square wave, 1/8 sample rate freq
    WiimoteSend(1, 0x18, 20 shl 3, 0xCC,0xCC,0x33,0x33,0xCC,0xCC,0x33,0x33,0xCC,0xCC, 0x33,0x33,0xCC,0xCC,0x33,0x33,0xCC,0xCC,0x33,0x33)
    end if
     
     
    if pressed(Wiimote.A) then
    // Enable Speaker
    Wiimote.Report14 = 0x04 | Int(Wiimote.Rumble)
    // Mute Speaker
    Wiimote.Report19 = 0x04 | Int(Wiimote.Rumble)
    // Write 0x01 to register 0xa20009
    WiimotePoke(1, 0x04a20009, 0x01)
    // Write 0x08 to register 0xa20001
    WiimotePoke(1, 0x04a20001, 0x08)
    // Write 7-byte configuration to registers 0xa20001-0xa20008
    WiimotePoke(1, 0x04a20001, 0x00)
    WiimotePoke(1, 0x04a20002, 0x00)
    WiimotePoke(1, 0x04a20003, 0x00)
    WiimotePoke(1, 0x04a20004, var.freq)
    WiimotePoke(1, 0x04a20005, var.volume) // 40
    WiimotePoke(1, 0x04a20006, 0x00)
    WiimotePoke(1, 0x04a20007, 0x00)
    // Write 0x01 to register 0xa20008
    WiimotePoke(1, 0x04a20008, 0x01)
    // Unmute speaker
    Wiimote.Report19 = 0x00 | Int(Wiimote.Rumble)
    var.On = true
    end if
     
    if pressed(Wiimote.B) then
    var.On = false
    Wiimote.Report19 = 0x04 | Int(Wiimote.Rumble) // Mute Speaker
    Wiimote.Report14 = 0x00 | Int(Wiimote.Rumble) // Disable speaker
    end if
     
    if pressed(Wiimote.Plus) then
    var.freq--
    debug = var.freq
    // Mute Speaker
    Wiimote.Report19 = 0x04 | Int(Wiimote.Rumble)
    // Write 0x01 to register 0xa20009
    WiimotePoke(1, 0x04a20009, 0x01)
    // Write 0x08 to register 0xa20001
    WiimotePoke(1, 0x04a20001, 0x08)
    // Write 7-byte configuration to registers 0xa20001-0xa20008
    WiimotePoke(1, 0x04a20001, 0x00)
    WiimotePoke(1, 0x04a20002, 0x00)
    WiimotePoke(1, 0x04a20003, 0x00)
    WiimotePoke(1, 0x04a20004, var.freq) // max volume?
    WiimotePoke(1, 0x04a20005, var.volume)
    WiimotePoke(1, 0x04a20006, 0x00)
    WiimotePoke(1, 0x04a20007, 0x00)
    // Write 0x01 to register 0xa20008
    WiimotePoke(1, 0x04a20008, 0x01)
    // Unmute speaker
    Wiimote.Report19 = 0x00 | Int(Wiimote.Rumble)
    end if
     
    if pressed(Wiimote.Minus) then
    var.freq++
    debug = var.freq
    // Mute Speaker
    Wiimote.Report19 = 0x04 | Int(Wiimote.Rumble)
    // Write 0x01 to register 0xa20009
    WiimotePoke(1, 0x04a20009, 0x01)
    // Write 0x08 to register 0xa20001
    WiimotePoke(1, 0x04a20001, 0x08)
    // Write 7-byte configuration to registers 0xa20001-0xa20008
    WiimotePoke(1, 0x04a20001, 0x00)
    WiimotePoke(1, 0x04a20002, 0x00)
    WiimotePoke(1, 0x04a20003, 0x00)
    WiimotePoke(1, 0x04a20004, var.freq) // max volume?
    WiimotePoke(1, 0x04a20005, var.volume)
    WiimotePoke(1, 0x04a20006, 0x00)
    WiimotePoke(1, 0x04a20007, 0x00)
    // Write 0x01 to register 0xa20008
    WiimotePoke(1, 0x04a20008, 0x01)
    // Unmute speaker
    Wiimote.Report19 = 0x00 | Int(Wiimote.Rumble)
    end if


    Stay Tuned!
    Sony PS2 Version 39004° Matrix Infinity 1.81°Hdd Maxtor 80 GB°2x Joypad Sony°2x Memory Card Sony 8 MB°Guitar Hero Controller°Eyetoy°
    Sony PSP Version 1004°DarkAlex Firmware 3.02°Memory Stick PRO Duo Byvio 4 GB°
    Nintendo Wii First Edition°Wiikey 1.0°2x Wiimote°2x Nunchuk°Nintendo RGB Cable°
    Microsoft X-Box 360 Core°Hitachi mod°2x Controller°Gamexpert Cooler King°Hard Disk 20 GB°Headset Microsoft°Remote Controller Microsoft°HD-AV High Definition Cable Microsoft°

  2. #2
    Join Date
    Aug 2005
    Location
    Milano
    Age
    25
    Posts
    2.318
    Downloads
    20
    Uploads
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Potenza rep
    9
    Gamer IDs

    Gamertag: Shion7
    Quote Originally Posted by Hide View Post
    • [Only registered and activated users can see links. ] - Controlli per Zelda - Ocarina of Time (N64)
    • [Only registered and activated users can see links. ] - Controlli per Goldeneye (N64)
    • [Only registered and activated users can see links. ] - Controlli per Nes
    Si parla di iso emulate su pc giusto ?

  3. #3
    Join Date
    Jul 2006
    Location
    casa mia =_=
    Age
    22
    Posts
    859
    Downloads
    0
    Uploads
    0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Potenza rep
    5
    Quote Originally Posted by Shion View Post
    Si parla di iso emulate su pc giusto ?
    esattamente
    Sony PS2 Version 39004° Matrix Infinity 1.81°Hdd Maxtor 80 GB°2x Joypad Sony°2x Memory Card Sony 8 MB°Guitar Hero Controller°Eyetoy°
    Sony PSP Version 1004°DarkAlex Firmware 3.02°Memory Stick PRO Duo Byvio 4 GB°
    Nintendo Wii First Edition°Wiikey 1.0°2x Wiimote°2x Nunchuk°Nintendo RGB Cable°
    Microsoft X-Box 360 Core°Hitachi mod°2x Controller°Gamexpert Cooler King°Hard Disk 20 GB°Headset Microsoft°Remote Controller Microsoft°HD-AV High Definition Cable Microsoft°

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158