jape escribió:Además que no se que hace este mensaje aquí cuando ya hay un tema entero dedicado a la emulación...
JAPosti escribió:Lo siento, no me leí al menos el título de todos los hilos para postear.
Issue: Connected, but not getting responses from GlovePie
Symptoms: Wiimote connected but GlovePie doesnt react to any movements or button pushes. The WiiRemote LED lights won't stop blinking until you disconnect it.
Resolutions: Uninstall BlueSoleil and reboot, reinstall and check in the bluetooth control panel, which hardware its working from. Next time you plug your device, try opening the Bluetooth CP and adding a device from there. I found out that you dont really need to open BlueSoleil software to have the wiiremote work, however you have to remove the device to disable it.. and add it again manually. The Wiimote LED lights stop blinking after running a glovepie script, as supposed to infinitely reiterating its blinks as mentioned in the symptoms.
clinisbut escribió:Estoy probando lo del Wiimote.Hasnunchuk y me devuelve siempre FALSE...
Falta decir que el nunchuk esta enchufado
Morraya escribió:Yo como barra sensora utilizo unas luces de navidad q van bien xD
Si tienes la Wii, enciendela para que le llegue corriente a la barra sensora y ponla encima del monitor o donde manejes el PC y ya está.
//Full control with Wiimote for "The house of the dead 2", should also work
//with the other House of the dead pc games. Wich all are nice mouse shooter
//that work nice with wiimote.
//Wiimote Dpad-Up for menu up
//Wiimote Dpad-Down för down menu
//Wiimote 1 Button for select in menu
//Wiimote B Button for fire weapon
//Wiimote A for reloading the weapon
//Wiimote ir for aiming
//Nice battery indicator that uses the Wiileds.
//Some parts are taken from other script. Enjoy some shooting //Nilly
//Mouse Control Script using IR
//by vkapadia with much assistance from inio
//vkapadia@vkapadia.com
//
//Calibration:
//To calibrate, run this program and put the Wiimote on a flat surface face-up.
//Then read the values in the debug line (next to the run button).
//Change these values until the debug line reads approx. all zeros.
var.xtrim = 6
var.ytrim = -31
var.ztrim = 6
//
//Options:
var.deadzone = 5 //distance in pixels that you have to move the wiimote in
//order for it to register movement. Creates a "dead zone" around the pointer
//to make it easier to click. Higher = smoother but less accurate.
var.KITTspeed = 100 ms //delay speed for flashing LEDs. higher = slower
var.rumble = false //makes the wiimote rumble if you hit the edge of the screen
//***Do not edit anything below this line unless you know what you are doing.***
//Set the D-Pad to function as the Arrow Keys
Keyboard.Up=Wiimote.Up
Keyboard.Down=Wiimote.Down
//Mouse Buttons
Keyboard.Enter=Wiimote.One
Mouse.RightButton = Wiimote.A
Mouse.LeftButton = Wiimote.B
Mouse.MiddleButton = Wiimote.Home
//Plus and Minus handle Volume
if wiimote.plus then
volumeup = true
wait 60 ms
volumeup = false
endif
if wiimote.minus then
volumedown = true
wait 60 ms
volumedown = false
endif
//wiimote.One
//wiimote.Two
//A full battery gives 0xC0 (192)
var.Batt = wiimote.Battery / 48
if true then
wait 5 seconds
//it sends an instruction that tells the Wiimote to actually
//send the report.
Wiimote.Report15 = 0x80 | Int(wiimote.Rumble)
end if
//Display the battery level of your wiimote using the four LEDs on the bottom.
//Battery level is displayed in four levels increasing to the right, like a cell
//phone battery gauge. As the battery gets close to the next level down, the LED
//for the current level will blink.
//Blink rate
var.Blink = 500ms
debug = "Battery level: " + 100*48*var.Batt/192 + "%"
if 0<=var.Batt<=0.25 then
Wiimote.Leds = 1
wait var.Blink
Wiimote.Leds = 0
wait var.Blink
elseif 0.25 < var.Batt<=1 then
Wiimote.Leds = 1
elseif 1 < var.Batt<=1.25 then
Wiimote.Leds = 3
wait var.Blink
Wiimote.Leds = 1
wait var.Blink
elseif 1.25 < var.Batt<=2 then
Wiimote.Leds = 3
elseif 2 < var.Batt<=2.25 then
Wiimote.Leds = 7
wait var.Blink
Wiimote.Leds = 3
wait var.Blink
elseif 2.25 < var.Batt<=3 then
Wiimote.Leds = 7
elseif 3 < var.Batt<=3.25 then
Wiimote.Leds = 15
wait var.Blink
Wiimote.Leds = 7
wait var.Blink
elseif 3.25 < var.Batt<=4 then
Wiimote.Leds = 15
else
Wiimote.Leds = 0
endif
//If the mouse reaches the end, rumble for 200 milliseconds
if var.rumble and (mouse.x = 0 or mouse.x = 1 or mouse.y = 0 or mouse.y = 1) then
if var.rmbl = false
wiimote.Rumble = 1
wait 200 ms
wiimote.Rumble = 0
endif
var.rmbl = true
else
var.rmbl = false
endif
var.accx = wiimote.RawForceX + var.xtrim
var.accy = wiimote.RawForceY + var.ytrim
var.accz = wiimote.RawForceZ + var.ztrim
if wiimote.dot1vis and wiimote.dot2vis then
if var.accy > -7 then
var.orientation = 0
elseif var.accy > -45 then
if var.accx < 0 then
var.orientation = 3
else
var.orientation = 1
endif
else
var.orientation = 2
endif
if var.leftpoint = 0 then
if var.orientation = 0 then
if wiimote.dot1x < wiimote.dot2x then
var.leftpoint = 1
else
var.leftpoint = 2
endif
endif
if var.orientation = 1 then
if wiimote.dot1y > wiimote.dot2y then
var.leftpoint = 1
else
var.leftpoint = 2
endif
endif
if var.orientation = 2 then
if wiimote.dot1x > wiimote.dot2x then
var.leftpoint = 1
else
var.leftpoint = 2
endif
endif
if var.orientation = 3 then
if wiimote.dot1y < wiimote.dot2y then
var.leftpoint = 1
else
var.leftpoint = 2
endif
endif
endif
if var.leftpoint = 1 then
var.fix1x = wiimote.dot1x
var.fix1y = wiimote.dot1y
var.fix2x = wiimote.dot2x
var.fix2y = wiimote.dot2y
else
var.fix1x = wiimote.dot2x
var.fix1y = wiimote.dot2y
var.fix2x = wiimote.dot1x
var.fix2y = wiimote.dot1y
endif
var.dx = var.fix2x - var.fix1x
var.dy = var.fix2y - var.fix1y
var.cx = (var.fix1x+var.fix2x)/1024.0 - 1
var.cy = (var.fix1y+var.fix2y)/1024.0 - .75
var.d = sqrt(var.dx*var.dx+var.dy*var.dy)
var.dx = var.dx / var.d
var.dy = var.dy / var.d
var.ox = -var.dy*var.cy-var.dx*var.cx;
var.oy = -var.dx*var.cy+var.dy*var.cx;
var.ax = (var.ox * screen.desktopwidth) + (screen.desktopwidth / 2)
var.ay = (-var.oy * screen.desktopwidth) + (screen.desktopheight / 2)
var.dx = var.ax - mouse.cursorposx
var.dy = var.ay - mouse.cursorposy
var.d = sqrt((var.dx*var.dx)+(var.dy*var.dy))
var.a = 180 / (200 + var.d * var.d * var.d * .001)
if var.d <= var.deadzone then var.a = 1
debug = var.d + " " + var.a
var.finalx = mouse.cursorposx * var.a + var.ax * (1 - var.a)
var.finaly = mouse.cursorposy * var.a + var.ay * (1 - var.a)
mouse.cursorposx = var.finalx
mouse.cursorposy = var.finaly
else
var.leftpoint = 0
endif
//debug = var.accx + " " + var.accy + " " + var.accz
// Poner a true si se quiere que vibre el mando al disparar
var.rumble = false
// Teclas de movimiento
Keyboard.Up = Wiimote.Up
Keyboard.Down = Wiimote.Down
Keyboard.Left = Wiimote.Left
Keyboard.Right = Wiimote.Right
Mouse.LeftButton = Wiimote.B
if Mouse.LeftButton and var.rumble then
Wiimote.Rumble = true
wait 10 ms
Wiimote.Rumble = false
endif
Mouse.RightButton = Wiimote.A
Keyboard.F3 = Wiimote.Home
var.fixX = 0
var.fixY = 0
if Wiimote.dot1vis then
var.newPosX = -Wiimote.dot1x + var.fixX
var.newPosY = Wiimote.dot1y + var.fixY
Mouse.DirectInputX = var.newPosX
Mouse.DirectInputY = var.newPosY
endIf
// Poner a true si se quiere que vibre el mando al disparar
var.rumble = false
// Teclas de movimiento
Keyboard.W = Wiimote.Up
Keyboard.S = Wiimote.Down
Keyboard.A = Wiimote.Left
Keyboard.D = Wiimote.Right
Mouse.LeftButton = Wiimote.B
if Mouse.LeftButton and var.rumble then
Wiimote.Rumble = true
wait 10 ms
Wiimote.Rumble = false
endif
Keyboard.Shift = Wiimote.A
Keyboard.R = Wiimote.Minus
Keyboard.E = Wiimote.Home
Mouse.WheelUp = Wiimote.Plus
if not wiimote.One and wiimote.Two then
Keyboard.F = true
wait 100 ms
Keyboard.F = false
endif
if wiimote.One and not wiimote.Two then
Keyboard.Ctrl = true
wait 100 ms
Keyboard.Ctrl = false
endif
if wiimote.Two and wiimote.One then
Mouse.RightButton = true
endif
// Para saltar, mover el Wiimote para arriba rapidamente
if var.accy >= 30 then
Keyboard.Space = true
else
Keyboard.Space = false
endif
var.fixX = 0
var.fixY = 0
if Wiimote.dot1vis then
var.newPosX = -Wiimote.dot1x + var.fixX
var.newPosY = Wiimote.dot1y + var.fixY
Mouse.DirectInputX = var.newPosX * 1.2
Mouse.DirectInputY = var.newPosY * 1.2
endIf
// Posicion de la seta. Rango de -0.99 a 0.99
var.xNunchuk = Wiimote.Nunchuk.JoyX * 100
var.yNunchuk = Wiimote.Nunchuk.JoyY * 100
// Valores de ajuste, poner valores mas altos si es muy sensible
var.xOff = 7
var.yOff = 7
if var.xNunchuk > var.xOff and var.yNunchuk > var.yOff then
key.w = false
key.a = false
key.s = true
key.d = true
else if var.xNunchuk > var.xOff and var.yNunchuk < -var.yOff then
key.w = true
key.a = false
key.s = false
key.d = true
else if var.xNunchuk < -var.xOff and var.yNunchuk < -var.yOff then
key.w = true
key.a = true
key.s = false
key.d = false
else if var.xNunchuk < -var.xOff and var.yNunchuk > var.yOff then
key.w = false
key.a = true
key.s = true
key.d = false
else if var.xNunchuk > var.xOff then
key.w = false
key.a = false
key.s = false
key.d = true
else if var.xNunchuk < -var.xOff then
key.w = false
key.a = true
key.s = false
key.d = false
else if var.yNunchuk < -var.yOff then
key.w = true
key.a = false
key.s = false
key.d = false
else if var.yNunchuk > var.yOff then
key.w = false
key.a = false
key.s = true
key.d = false
else if var.xNunchuk > -var.xOff and < var.xOff and var.yNunchuk < var.yOff and > -var.yOff then
key.w = false
key.a = false
key.s = false
key.d = false
else
key.w = false
key.a = false
key.s = false
key.d = false
endif