|
[Profile]
|
|
Device = XInput/0/Gamepad
|
|
Buttons/A = if($lockP1 < 1, $outA = ($stInA = $curInA) & -1 | if($curInA % 2 > $stInA % 2 | $curInA * 0.5 % 2 > 0.9 & $stInA * 0.5 % 2 < 1 | $curInA * 0.25 % 2 > 0.9 & $stInA * 0.25 % 2 < 1 | $curInA * 0.125 % 2 > 0.9 & $stInA * 0.125 % 2 < 1, !$outA, $curInA > 0) | ($curInA = `XInput/0/Gamepad:Button A` + `XInput/1/Gamepad:Button A` * 2 + `XInput/2/Gamepad:Button A` * 4 + `XInput/3/Gamepad:Button A` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:L`, 0)) | ($lockP1 = if(`DInput/0/Keyboard Mouse:NUMPAD9` | `DInput/0/Keyboard Mouse:NUMPAD1`, if(`DInput/0/Keyboard Mouse:Ctrl`, 0, 2), if(`DInput/0/Keyboard Mouse:NUMPAD5`, if(`DInput/0/Keyboard Mouse:Ctrl`, 0, 1), $lockP1))) & -1
|
|
Buttons/B = if($lockP1 < 1, $outB = ($stInB = $curInB) & -1 | if($curInB % 2 > $stInB % 2 | $curInB * 0.5 % 2 > 0.9 & $stInB * 0.5 % 2 < 1 | $curInB * 0.25 % 2 > 0.9 & $stInB * 0.25 % 2 < 1 | $curInB * 0.125 % 2 > 0.9 & $stInB * 0.125 % 2 < 1, !$outB, $curInB > 0) | ($curInB = `XInput/0/Gamepad:Button B` + `XInput/1/Gamepad:Button B` * 2 + `XInput/2/Gamepad:Button B` * 4 + `XInput/3/Gamepad:Button B` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:K`, 0))
|
|
Buttons/+ = if($lockP1 < 1, $outPlus = ($stInPlus = $curInPlus) & -1 | if($curInPlus % 2 > $stInPlus % 2 | $curInPlus * 0.5 % 2 > 0.9 & $stInPlus * 0.5 % 2 < 1 | $curInPlus * 0.25 % 2 > 0.9 & $stInPlus * 0.25 % 2 < 1 | $curInPlus * 0.125 % 2 > 0.9 & $stInPlus * 0.125 % 2 < 1, !$outPlus, $curInPlus > 0) | ($curInPlus = `XInput/0/Gamepad:Start` + `XInput/1/Gamepad:Start` * 2 + `XInput/2/Gamepad:Start` * 4 + `XInput/3/Gamepad:Start` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:RETURN`, 0))
|
|
IR/Up = ($finalPointUp = if($mode < 2, if($lockP1 > 1, $finalPointUp, max(0, -($inPointV = clamp(if($lockP1 > 0, `DInput/0/Keyboard Mouse:Cursor Y+` - `DInput/0/Keyboard Mouse:Cursor Y-`, $inPointV + 0.008 * (deadzone(if(`XInput/0/Gamepad:Button Y`, `XInput/0/Gamepad:Left Y-` - `XInput/0/Gamepad:Left Y+`, `XInput/0/Gamepad:Right Y-` - `XInput/0/Gamepad:Right Y+`), 0.1) + deadzone(if(`XInput/1/Gamepad:Button Y`, `XInput/1/Gamepad:Left Y-` - `XInput/1/Gamepad:Left Y+`, `XInput/1/Gamepad:Right Y-` - `XInput/1/Gamepad:Right Y+`), 0.1) + deadzone(if(`XInput/1/Gamepad:Button Y`, `XInput/2/Gamepad:Left Y-` - `XInput/2/Gamepad:Left Y+`, `XInput/2/Gamepad:Right Y-` - `XInput/2/Gamepad:Right Y+`), 0.1) + deadzone(if(`XInput/3/Gamepad:Button Y`, `XInput/3/Gamepad:Left Y-` - `XInput/3/Gamepad:Left Y+`, `XInput/3/Gamepad:Right Y-` - `XInput/3/Gamepad:Right Y+`), 0.1))), -1, 1)))), 0)) | ($mode = if(`DInput/0/Keyboard Mouse:DIVIDE`, 2, if(`DInput/0/Keyboard Mouse:MULTIPLY`, 1, if(`DInput/0/Keyboard Mouse:SUBTRACT`, 0, $mode)))) & -1
|
|
IR/Down = $finalPointDown = if($lockP1 > 1, $finalPointDown, max(0, $inPointV))
|
|
IR/Left = $finalPointLeft = if($mode < 2, if($lockP1 > 1, $finalPointLeft, max(0, -($inPointH = clamp(if($lockP1 > 0, `DInput/0/Keyboard Mouse:Cursor X+` - `DInput/0/Keyboard Mouse:Cursor X-`, $inPointH + 0.008 * (deadzone(if(`XInput/0/Gamepad:Button Y`, `XInput/0/Gamepad:Left X+` - `XInput/0/Gamepad:Left X-`, `XInput/0/Gamepad:Right X+` - `XInput/0/Gamepad:Right X-`), 0.1) + deadzone(if(`XInput/1/Gamepad:Button Y`, `XInput/1/Gamepad:Left X+` - `XInput/1/Gamepad:Left X-`, `XInput/1/Gamepad:Right X+` - `XInput/1/Gamepad:Right X-`), 0.1) + deadzone(if(`XInput/2/Gamepad:Button Y`, `XInput/2/Gamepad:Left X+` - `XInput/2/Gamepad:Left X-`, `XInput/2/Gamepad:Right X+` - `XInput/2/Gamepad:Right X-`), 0.1) + deadzone(if(`XInput/3/Gamepad:Button Y`, `XInput/3/Gamepad:Left X+` - `XInput/3/Gamepad:Left X-`, `XInput/3/Gamepad:Right X+` - `XInput/3/Gamepad:Right X-`), 0.1))), -1, 1)))), 0)
|
|
IR/Right = $finalPointRight = if($lockP1 > 1, $finalPointRight, max(0, $inPointH))
|
|
Swing/Angle = 1.0000000000000000
|
|
Swing/Up = if($lockP1 < 1, if($mode < 1 | $mode > 1, 0, $outSwingUp = ($stInSwingUp = $curInSwingUp) & -1 | if($curInSwingUp % 2 > $stInSwingUp % 2 | $curInSwingUp * 0.5 % 2 > 0.9 & $stInSwingUp * 0.5 % 2 < 1 | $curInSwingUp * 0.25 % 2 > 0.9 & $stInSwingUp * 0.25 % 2 < 1 | $curInSwingUp * 0.125 % 2 > 0.9 & $stInSwingUp * 0.125 % 2 < 1, !$outSwingUp, $curInSwingUp > 0) | ($curInSwingUp = `XInput/0/Gamepad:Shoulder R` + `XInput/1/Gamepad:Shoulder R` * 2 + `XInput/2/Gamepad:Shoulder R` * 4 + `XInput/3/Gamepad:Shoulder R` * 8) & -1), if($lockP1 < 2, if($mode < 1, 0, `DInput/0/Keyboard Mouse:LSHIFT`), 0))
|
|
Tilt/Angle = if($mode > 1, 56.25, 85)
|
|
Tilt/Forward = max(0, if($mode < 2, $inTiltV, 4 / 5 * $inTiltV + 1 / 5)) | ($inTiltV = if($lockP1 < 1, if($mode < 2, 0, ($inTiltV1 + $inTiltV2 + $inTiltV3 + $inTiltV4) / max(1, ($inTiltV1 < 0 | 0 < $inTiltV1) + ($inTiltV2 < 0 | 0 < $inTiltV2) + ($inTiltV3 < 0 | 0 < $inTiltV3) + ($inTiltV4 < 0 | 0 < $inTiltV4)) | (($inTiltV1 = deadzone(`XInput/0/Gamepad:Left Y+` - `XInput/0/Gamepad:Left Y-`, 0.1)) | ($inTiltV2 = deadzone(`XInput/1/Gamepad:Left Y+` - `XInput/1/Gamepad:Left Y-`, 0.1)) | ($inTiltV3 = deadzone(`XInput/2/Gamepad:Left Y+` - `XInput/2/Gamepad:Left Y-`, 0.1)) | ($inTiltV4 = deadzone(`XInput/3/Gamepad:Left Y+` - `XInput/3/Gamepad:Left Y-`, 0.1))) & -1), if($lockP1 < 2, if($mode < 2, 0, `DInput/0/Keyboard Mouse:W` - `DInput/0/Keyboard Mouse:S`), 0))) & -1
|
|
Tilt/Backward = max(0, if($mode < 2, $inTiltV, -(4 / 5 * $inTiltV + 1 / 5)))
|
|
Tilt/Left = max(0, -if($mode < 1 | $mode > 1, 4 / 5 * $inTiltH, smooth($inTiltH, 0.35))) | ($inTiltH = if($lockP1 < 1, if($mode < 1, 0, ($inTiltH1 + $inTiltH2 + $inTiltH3 + $inTiltH4) / max(1, ($inTiltH1 < 0 | 0 < $inTiltH1) + ($inTiltH2 < 0 | 0 < $inTiltH2) + ($inTiltH3 < 0 | 0 < $inTiltH3) + ($inTiltH4 < 0 | 0 < $inTiltH4)) | (($inTiltH1 = deadzone(`XInput/0/Gamepad:Left X+` - `XInput/0/Gamepad:Left X-`, 0.1)) | ($inTiltH2 = deadzone(`XInput/1/Gamepad:Left X+` - `XInput/1/Gamepad:Left X-`, 0.1)) | ($inTiltH3 = deadzone(`XInput/2/Gamepad:Left X+` - `XInput/2/Gamepad:Left X-`, 0.1)) | ($inTiltH4 = deadzone(`XInput/3/Gamepad:Left X+` - `XInput/3/Gamepad:Left X-`, 0.1))) & -1), if($lockP1 < 2, if($mode < 1, 0, `DInput/0/Keyboard Mouse:D` - `DInput/0/Keyboard Mouse:A`), 0))) & -1
|
|
Tilt/Right = max(0, if($mode < 1 | $mode > 1, 4 / 5 * $inTiltH, smooth($inTiltH, 0.35)))
|
|
Shake/X = $finalShake = if($lockP1 < 1, if($mode < 1, `XInput/0/Gamepad:Button X` | `XInput/1/Gamepad:Button X` | `XInput/2/Gamepad:Button X` | `XInput/3/Gamepad:Button X`, 0), if($lockP1 < 2, `DInput/0/Keyboard Mouse:RSHIFT`, 0))
|
|
Shake/Y = $finalShake
|
|
Shake/Z = $finalShake
|
|
Extension = Nunchuk
|
|
Nunchuk/Buttons/C = if($lockP1 < 1, $outC = ($stInC = $curInC) & -1 | if($curInC % 2 > $stInC % 2 | $curInC * 0.5 % 2 > 0.9 & $stInC * 0.5 % 2 < 1 | $curInC * 0.25 % 2 > 0.9 & $stInC * 0.25 % 2 < 1 | $curInC * 0.125 % 2 > 0.9 & $stInC * 0.125 % 2 < 1, !$outC, $curInC > 0) | ($curInC = `XInput/0/Gamepad:Shoulder L` + `XInput/1/Gamepad:Shoulder L` * 2 + `XInput/2/Gamepad:Shoulder L` * 4 + `XInput/3/Gamepad:Shoulder L` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:Q`, 0))
|
|
Nunchuk/Buttons/Z = if($lockP1 < 1, $outZ = ($stInZ = $curInZ) & -1 | if($curInZ % 2 > $stInZ % 2 | $curInZ * 0.5 % 2 > 0.9 & $stInZ * 0.5 % 2 < 1 | $curInZ * 0.25 % 2 > 0.9 & $stInZ * 0.25 % 2 < 1 | $curInZ * 0.125 % 2 > 0.9 & $stInZ * 0.125 % 2 < 1, !$outZ, $curInZ > 0) | ($curInZ = `XInput/0/Gamepad:Shoulder R` + `XInput/1/Gamepad:Shoulder R` * 2 + `XInput/2/Gamepad:Shoulder R` * 4 + `XInput/3/Gamepad:Shoulder R` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:LSHIFT`, 0))
|
|
Nunchuk/Stick/Up = if($lockP1 < 1, (max(0, $inStickV = ($inStickV1 + $inStickV2 + $inStickV3 + $inStickV4) / max(1, ($inStickV1 < 0 | 0 < $inStickV1) + ($inStickV2 < 0 | 0 < $inStickV2) + ($inStickV3 < 0 | 0 < $inStickV3) + ($inStickV4 < 0 | 0 < $inStickV4)))) | (($inStickV1 = if(`XInput/0/Gamepad:Button Y`, 0, deadzone(`XInput/0/Gamepad:Left Y+` - `XInput/0/Gamepad:Left Y-`, 0.1))) | ($inStickV2 = if(`XInput/1/Gamepad:Button Y`, 0, deadzone(`XInput/1/Gamepad:Left Y+` - `XInput/1/Gamepad:Left Y-`, 0.1))) | ($inStickV3 = if(`XInput/2/Gamepad:Button Y`, 0, deadzone(`XInput/2/Gamepad:Left Y+` - `XInput/2/Gamepad:Left Y-`, 0.1))) | ($inStickV4 = if(`XInput/3/Gamepad:Button Y`, 0, deadzone(`XInput/3/Gamepad:Left Y+` - `XInput/3/Gamepad:Left Y-`, 0.1)))) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:W`, 0))
|
|
Nunchuk/Stick/Down = if($lockP1 < 1, max(0, -$inStickV), if($lockP1 < 2, `DInput/0/Keyboard Mouse:S`, 0))
|
|
Nunchuk/Stick/Left = if($lockP1 < 1, (max(0, -($inStickH = ($inStickH1 + $inStickH2 + $inStickH3 + $inStickH4) / max(1, ($inStickH1 < 0 | 0 < $inStickH1) + ($inStickH2 < 0 | 0 < $inStickH2) + ($inStickH3 < 0 | 0 < $inStickH3) + ($inStickH4 < 0 | 0 < $inStickH4))))) | (($inStickH1 = if(`XInput/0/Gamepad:Button Y`, 0, deadzone(`XInput/0/Gamepad:Left X+` - `XInput/0/Gamepad:Left X-`, 0.1))) | ($inStickH2 = if(`XInput/1/Gamepad:Button Y`, 0, deadzone(`XInput/1/Gamepad:Left X+` - `XInput/1/Gamepad:Left X-`, 0.1))) | ($inStickH3 = if(`XInput/2/Gamepad:Button Y`, 0, deadzone(`XInput/2/Gamepad:Left X+` - `XInput/2/Gamepad:Left X-`, 0.1))) | ($inStickH4 = if(`XInput/3/Gamepad:Button Y`, 0, deadzone(`XInput/3/Gamepad:Left X+` - `XInput/3/Gamepad:Left X-`, 0.1)))) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:A`, 0))
|
|
Nunchuk/Stick/Right = if($lockP1 < 1, max(0, $inStickH), if($lockP1 < 2, `DInput/0/Keyboard Mouse:D`, 0))
|
|
D-Pad/Up = if($lockP1 < 1, $outPadUp = ($stInPadUp = $curInPadUp) & -1 | if($curInPadUp % 2 > $stInPadUp % 2 | $curInPadUp * 0.5 % 2 > 0.9 & $stInPadUp * 0.5 % 2 < 1 | $curInPadUp * 0.25 % 2 > 0.9 & $stInPadUp * 0.25 % 2 < 1 | $curInPadUp * 0.125 % 2 > 0.9 & $stInPadUp * 0.125 % 2 < 1, !$outPadUp, $curInPadUp > 0) | ($curInPadUp = `XInput/0/Gamepad:Pad N` + `XInput/1/Gamepad:Pad N` * 2 + `XInput/2/Gamepad:Pad N` * 4 + `XInput/3/Gamepad:Pad N` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:UP`, 0))
|
|
D-Pad/Down = if($lockP1 < 1, $outPadDown = ($stInPadDown = $curInPadDown) & -1 | if($curInPadDown % 2 > $stInPadDown % 2 | $curInPadDown * 0.5 % 2 > 0.9 & $stInPadDown * 0.5 % 2 < 1 | $curInPadDown * 0.25 % 2 > 0.9 & $stInPadDown * 0.25 % 2 < 1 | $curInPadDown * 0.125 % 2 > 0.9 & $stInPadDown * 0.125 % 2 < 1, !$outPadDown, $curInPadDown > 0) | ($curInPadDown = `XInput/0/Gamepad:Pad S` + `XInput/1/Gamepad:Pad S` * 2 + `XInput/2/Gamepad:Pad S` * 4 + `XInput/3/Gamepad:Pad S` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:DOWN`, 0))
|
|
D-Pad/Left = if($lockP1 < 1, $outPadLeft = ($stInPadLeft = $curInPadLeft) & -1 | if($curInPadLeft % 2 > $stInPadLeft % 2 | $curInPadLeft * 0.5 % 2 > 0.9 & $stInPadLeft * 0.5 % 2 < 1 | $curInPadLeft * 0.25 % 2 > 0.9 & $stInPadLeft * 0.25 % 2 < 1 | $curInPadLeft * 0.125 % 2 > 0.9 & $stInPadLeft * 0.125 % 2 < 1, !$outPadLeft, $curInPadLeft > 0) | ($curInPadLeft = `XInput/0/Gamepad:Pad W` + `XInput/1/Gamepad:Pad W` * 2 + `XInput/2/Gamepad:Pad W` * 4 + `XInput/3/Gamepad:Pad W` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:LEFT`, 0))
|
|
D-Pad/Right = if($lockP1 < 1, $outPadRight = ($stInPadRight = $curInPadRight) & -1 | if($curInPadRight % 2 > $stInPadRight % 2 | $curInPadRight * 0.5 % 2 > 0.9 & $stInPadRight * 0.5 % 2 < 1 | $curInPadRight * 0.25 % 2 > 0.9 & $stInPadRight * 0.25 % 2 < 1 | $curInPadRight * 0.125 % 2 > 0.9 & $stInPadRight * 0.125 % 2 < 1, !$outPadRight, $curInPadRight > 0) | ($curInPadRight = `XInput/0/Gamepad:Pad E` + `XInput/1/Gamepad:Pad E` * 2 + `XInput/2/Gamepad:Pad E` * 4 + `XInput/3/Gamepad:Pad E` * 8) & -1, if($lockP1 < 2, `DInput/0/Keyboard Mouse:RIGHT`, 0))
|
|
Options/Upright Wiimote = $mode > 1
|