// Тумблер ON/OF CapsLock
CapsLock = Mouse1.Button3
if (pressed(PPJoy1.Digital0)) {
Mouse.CursorPosX = screen.Width/2
Mouse.CursorPosY = screen.Height /2
Mouse.Swallow = true
}
if (released(PPJoy1.Digital0)) {
Mouse.Swallow = false
}
if (Clicked(CapsLock)) {
toggle(PPJoy1.Digital0)
}
if (CapsLock = false) then var.f=0
if (CapsLock = true and var.off = 0 and var.f=0) {
var.off = 1
var.f=1
elseif (CapsLock = true and var.off = 1 and var.f=0) {
var.off = 0
var.f=1
}
}
if var.off = 0 then
************************************************************