PIR_BIM/External_Software/Glovepie/VoiceScripts/MouseVoiceCommands.pie

29 lines
No EOL
397 B
Text

if said("stop") then
var.speed = [0, 0]
end if
if said("slow") then
var.speed = var.speed / 2
end if
if said("fast") then
var.speed = var.speed * 2
end if
if said("left") then
var.speed = [-3, 0]
end if
if said("right") then
var.speed = [3, 0]
end if
if said("up") then
var.speed = [0, -2]
end if
if said("down") then
var.speed = [0, 2]
end if
mouse.DirectInput2D += var.speed