SHOW:
|
|
- or go back to the newest paste.
| 1 | /* | |
| 2 | - | Minecraft 1.8 Wiimote made by BigETI |
| 2 | + | Minecraft 1.8 and above Wiimote script made by BigETI (Ethem Kurt). |
| 3 | - | For a better gameplay double click the Home button of your Classic Controller to get a better camera gameplay |
| 3 | + | Please use a Wii Classic Controller to play this game. |
| 4 | For a better gameplay double click the Home button of your Classic Controller to get a better camera gameplay. | |
| 5 | Double click again to return back to normal mouse movement. | |
| 6 | ||
| 7 | Configuration: | |
| 8 | ||
| 9 | - Up/Down/Left/Right: Left Analog Stick (includes a minor camera movement support) or D-Pad | |
| 10 | - Gameplay switch (Mouse mode/Play mode): Home button (doubleclicked!) | |
| 11 | - List players (Only online!): Home button | |
| 12 | - Camera Move: Right Analog Stick | |
| 13 | - Attack: A button | |
| 14 | - Use item: X button | |
| 15 | - Jump: B button | |
| 16 | - Sneak: Y button | |
| 17 | - Pick block: Minus button | |
| 18 | - Inventory: ZL button | |
| 19 | - Drop: ZR button | |
| 20 | - Switch items: L or R button | |
| 21 | */ | |
| 22 | ||
| 23 | if(Wiimote1.PluggedIn) | |
| 24 | if(Wiimote1.HasClassic) | |
| 25 | if(Wiimote1.Classic.RightStickX < (-0.1)) | |
| 26 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.RightStickX/50) | |
| 27 | endif | |
| 28 | if(Wiimote1.Classic.RightStickX > 0.1) | |
| 29 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.RightStickX/50) | |
| 30 | endif | |
| 31 | if(Wiimote1.Classic.RightStickY < (-0.1)) | |
| 32 | if(var.mode) | |
| 33 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)-(Wiimote1.Classic.RightStickY/50) | |
| 34 | else | |
| 35 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)+(Wiimote1.Classic.RightStickY/50) | |
| 36 | endif | |
| 37 | endif | |
| 38 | if(Wiimote1.Classic.RightStickY > 0.1) | |
| 39 | if(var.mode) | |
| 40 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)-(Wiimote1.Classic.RightStickY/50) | |
| 41 | else | |
| 42 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)+(Wiimote1.Classic.RightStickY/50) | |
| 43 | endif | |
| 44 | endif | |
| 45 | if(var.mode) | |
| 46 | if(Wiimote1.Classic.LeftStickY < (-0.4) or Wiimote1.Classic.Up) | |
| 47 | W = true | |
| 48 | else | |
| 49 | W = false | |
| 50 | endif | |
| 51 | if(Wiimote1.Classic.LeftStickY > 0.4 or Wiimote1.Classic.Down) | |
| 52 | S = true | |
| 53 | else | |
| 54 | S = false | |
| 55 | endif | |
| 56 | if(Wiimote1.Classic.LeftStickX < (-0.4)) | |
| 57 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.LeftStickX/55) | |
| 58 | endif | |
| 59 | if(Wiimote1.Classic.LeftStickX > 0.4) | |
| 60 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.LeftStickX/55) | |
| 61 | endif | |
| 62 | else | |
| 63 | if(Wiimote1.Classic.LeftStickY < (-0.1)) | |
| 64 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)+(Wiimote1.Classic.LeftStickY/50) | |
| 65 | endif | |
| 66 | if(Wiimote1.Classic.LeftStickY > 0.1) | |
| 67 | Mouse.VirtualDesktopY = (Screen.CursorPosY/Screen.Height)+(Wiimote1.Classic.LeftStickY/50) | |
| 68 | endif | |
| 69 | if(Wiimote1.Classic.LeftStickX < (-0.1)) | |
| 70 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.LeftStickX/50) | |
| 71 | endif | |
| 72 | if(Wiimote1.Classic.LeftStickX > 0.1) | |
| 73 | Mouse.VirtualDesktopX = (Screen.CursorPosX/Screen.Width)+(Wiimote1.Classic.LeftStickX/50) | |
| 74 | endif | |
| 75 | endif | |
| 76 | A = Wiimote1.Classic.Left | |
| 77 | D = Wiimote1.Classic.Right | |
| 78 | Mouse.LeftButton = Wiimote1.Classic.a | |
| 79 | Mouse.RightButton = Wiimote1.Classic.x | |
| 80 | Mouse.MiddleButton = Wiimote1.Classic.Minus | |
| 81 | Key.Space = Wiimote1.Classic.b | |
| 82 | Key.Shift = Wiimote1.Classic.y | |
| 83 | Mouse.WheelUp = Clicked(Wiimote1.Classic.LFull) | |
| 84 | Mouse.WheelDown = Clicked(Wiimote1.Classic.RFull) | |
| 85 | Q = Wiimote1.Classic.ZR | |
| 86 | E = Wiimote1.Classic.ZL | |
| 87 | Key.Tab = Wiimote1.Classic.Home | |
| 88 | Key.Escape = Wiimote1.Classic.Plus | |
| 89 | if(DoubleClicked(Wiimote1.Classic.Home)) | |
| 90 | - | |
| 90 | + | |
| 91 | - | |
| 91 | + | |
| 92 | Wiimote1.Leds = 15 | |
| 93 | midi.LowBongo = true | |
| 94 | else | |
| 95 | var.mode = false | |
| 96 | Wiimote1.Leds = 1 | |
| 97 | midi.HiBongo = true | |
| 98 | endif | |
| 99 | endif | |
| 100 | Debug = "Classic Controller Mode; Battery: "+((Wiimote1.Battery/128)*100)+"%" | |
| 101 | else | |
| 102 | Debug = "Please use the Classic Controller to play. Battery: "+((Wiimote1.Battery/128)*100)+"%" | |
| 103 | endif | |
| 104 | else | |
| 105 | Debug = "Please connect a Wiimote to this computer." | |
| 106 | endif |