• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 26 27 28 29 30 ... 320 Next »

Need some help with the "Input Syntax" thingy
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Need some help with the "Input Syntax" thingy
08-03-2020, 03:23 AM
#1
Lazthedude
Unregistered
 
Question 
I'm not very good at programming, so this stuff is a bit confusing for me. Anyways, what I am trying to do is something like "If pressing Button 7 (right trigger on my controller), invert the control stick's vertical input. If not pressing Button 7, then work normally." So what i did was put this in the Control Stick Up section:
Code:
if(`Button 7`=false, `Axis Y-`, null), if(`Button 7`=true, `Axis Y+`, null)
And this in the Control Stick Down section:
Code:
if(`Button 7`=false, `Axis Y+`, null), if(`Button 7`=true, `Axis Y-`, null)
And this works perfectly, except for when I'm not pressing Input 1. In that case, it simply doesn't do anything.
The reason I'm even doing this is because in Mario Sunshine, when you use the Squirt Nozzle, the up and down controls are inverted, so I'm trying to make it so it's not inverted.

Thank you in advance.
Reply
08-03-2020, 05:49 AM
#2
Billiard26 Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 2,661
Threads: 8
Joined: Feb 2010
Code:
(`Axis Y-` - `Axis Y+`) * (1 - 2 * `Button 7`)

Use that as your Stick's "Up" expression.
Leave your "Down" expression empty.
Find
Reply
08-03-2020, 06:41 AM
#3
Lazthedude
Unregistered
 
I don't understand that code at all but it works, so thank you!
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode