Hardware Classic Controller Minecraft GlovePIE Script

m0i0k0e

Member
OP
Newcomer
Joined
Jan 16, 2010
Messages
11
Trophies
0
XP
19
Country
I've been playing Minecraft and earlier today I thought if its possible to play with the classic controller (I thought it would be ideal seeing as it has two analog sticks and such). I chose to use GlovePIE cause I thought it would be easiest to use and I have used it before. I made my script but when it comes to the right analog stick to control the pointer it moves the pointer too fast. Heres the script...

Key.W = Classic1.LeftStickY < 0
Key.A = Classic1.LeftStickX < 0
Key.S = Classic1.LeftStickY > 0
Key.D = Classic1.LeftStickX > 0
Key.Space = Classic1.b
Mouse.x = Classic1.RightStickX + 0.5
Mouse.y = Classic1.RightStickY + 0.512

Mouse.LeftButton = Classic1.L
Mouse.RightButton = Classic1.R

(The bit in bold's the bit i'm on about if you couldn't tell
yay.gif
)
I have the mouse a bit offset from the center because the window is a bit off center and I have the mouse set to go back to the center when I let go of the analog stick. My problem is that when I move the controller it moves the mouse very fast and it isn't that smooth. I understand the smoothness might be because of the controller but I want it so the sensitivity is down.
 

YoshiKart

Well-Known Member
Member
Joined
Sep 12, 2009
Messages
203
Trophies
1
XP
267
Country
United States
I got this from the Zoom Player Script by marinos35. Try this out:

Mouse.RightButton = Wiimote.Classic.ZL and var.on
Mouse.LeftButton = Wiimote.Classic.ZR and var.on
if (Wiimote.Classic.Joy1X > var.joyfix or Wiimote.Classic.Joy1X < -var.joyfix) and var.on then mouse.x = mouse.x + Wiimote.Classic.Joy1X/50
if (Wiimote.Classic.Joy1Y > var.joyfix or Wiimote.Classic.Joy1Y < -var.joyfix) and var.on then mouse.y = mouse.y + Wiimote.Classic.Joy1Y/50

Ignore the var.on's for your case, and, Switch Wiimote.Classic.Joy1 to Joy2.
 

kylehaas

Well-Known Member
Member
Joined
May 14, 2008
Messages
157
Trophies
1
XP
87
Country
United States
Did you guys ever get this figured out?
I'm making a very similar script for Terraria and I'm having the same problem!

Got it fixed...
A similar script should work for minecraft...

//Wii Classic Controller Terraria Script by Haazenpfeffer//
if (Classic.RightStick >0.1) then Mouse.DirectInputPos += (classic1.RightStick * 15)
Mouse.LeftButton = Classic.A
Mouse.RightButton = Classic.y
Mouse.WheelUp = Classic.ZL
Mouse.WheelDown = Classic.ZR
Key.Ctrl = HeldDown(Classic.A, 0.25)
Key.K = Classic.LFull
Key.G = Classic.ZR
Key.F = HeldDown(Classic.y, 0.25)
Mouse.wheelup = Classic.Left
Key.Four = Classic.Up
Mouse.wheeldown = Classic.Right
Key.N = Classic.Down
Key.W = Classic.LeftStickY < -.5
Key.S = Classic.LeftStickY > .5
Key.A = Classic.LeftStickX < -.5
Key.D = Classic.LeftStickX > .5
Key.E = Classic.Plus
Key.Shift = Classic.Minus
Key.Escape = Classic.x
Key.Space = Classic.b
if (HeldDown(Classic.Plus, 0.25)) then Key.Down = Classic.Down
if (HeldDown(Classic.Plus, 0.25)) then Key.Up = Classic.Up
if (HeldDown(Classic.Plus, 0.25)) then Key.Right = Classic.Right
if (HeldDown(Classic.Plus, 0.25)) then Key.Left = Classic.Left
if (HeldDown(Classic.Plus, 0.25)) then Key.Enter = Classic.RFull
if (HeldDown(Classic.Plus, 0.25)) then Key.Escape = Classic.LFull
 

kylehaas

Well-Known Member
Member
Joined
May 14, 2008
Messages
157
Trophies
1
XP
87
Country
United States
I figured I'd go ahead and post my FPS script here as well.
It works great with Source games and even works with Minecraft!
Keep in mind, it's not perfect... So feel free to fix it up to your own liking.

//Wii Classic Controller PRO FPS SCRIPT BY Haazenpfeffer//
Mouse.LeftButton = Classic1.R
Mouse.RightButton = Pressed(Classic.L)
Mouse.MiddleButton = Pressed(Classic.ZL)
Mouse.WheelUp = Classic.Up
Mouse.WheelDown = Classic.Down
Key.W = Classic.LeftStickY < -0.5
Key.S = Classic.LeftStickY > 0.5
Key.A = Classic.LeftStickX < -0.5
Key.D = Classic.LeftStickX > 0.5
Key.R = Classic.x
Key.F = HeldDown(Classic.x, 0.25)
Key.Escape = Classic.Home
Key.Space = Classic.y
Key.E = Classic.a
Key.C = Classic.Plus
Key.Ctrl = Classic1.b
//Joystick aiming
If Classic.RightStickX < -0.2 or Classic.RightStickX > 0.2
Mouse.DirectInputX = Mouse.DirectInputX + (30)*(Classic.RightStickX)
EndIf

If Classic.RightStickY < -0.2 or Classic.RightStickY > 0.2
Mouse.DirectInputY = Mouse.DirectInputY + (30)*(Classic.RightStickY)
EndIf
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • wolffangalchemist @ wolffangalchemist:
    i don't miss working in a hospital, 12
    hour shifts and people calling out and getting stick there past shift till someone eventually shows up to cover the last 4 hours of it.... yeah i don't think so.
  • wolffangalchemist @ wolffangalchemist:
    also was during peak covid,
  • K3Nv2 @ K3Nv2:
    I was just janitorial but you pick up some lingo around any facility like that plus learning new areas was cool
  • wolffangalchemist @ wolffangalchemist:
    i was a mental heath tech, did it five years, first 4 years was at a private facility not in a hospital. last year was at a hospital, very diffrent experince.
  • K3Nv2 @ K3Nv2:
    @wolffangalchemist, giving any free consultants?
  • wolffangalchemist @ wolffangalchemist:
    @K3Nv2
    been out of tha line of work for years lol.
  • kijetesantakalu042 @ kijetesantakalu042:
    I think I have a gay accent
  • x65943 @ x65943:
    You do
  • Sonic Angel Knight @ Sonic Angel Knight:
    PURPLE name in chat now!?
    +1
  • Sonic Angel Knight @ Sonic Angel Knight:
    Is chat in trouble? :ninja:
    +1
  • K3Nv2 @ K3Nv2:
    Looks like you got yellow text on your pants
  • kijetesantakalu042 @ kijetesantakalu042:
    Looks like you got small text in your pants
  • K3Nv2 @ K3Nv2:
    Stop getting hard over text sir
  • kijetesantakalu042 @ kijetesantakalu042:
    Miku irl:
    lOl
    l
    0l
  • JollyBaker @ JollyBaker:
    Guys, is this picture of my, uhhh, I think they call it a waifu(?), suitable for the conscientious objector in tf2 (the sign melee)?
    erect-jpg.474368
  • LightyKD @ LightyKD:
    Hopefully the admins have noticed the Trading section.
  • lwiz @ lwiz:
    ...or soon seven pages of recent "quality" postings. From someone claiming to be 39 o.O
  • LightyKD @ LightyKD:
    NVM it's worse than I thought 🤦🏾‍♂️
  • Crass @ Crass:
    WTF is going on, who
    is @yaykittykitty
  • LightyKD @ LightyKD:
    My phone went crazy while the site was being attacked.
  • lwiz @ lwiz:
    Earlyish Euro morning tends to be slower in staff responses - usually the time when I see spammers getting through to site as well. This time "spammer" has been member for a while
    lwiz @ lwiz: Earlyish Euro morning tends to be slower in staff responses - usually the time when I see...