 Okay, so to kick things off here. Let's go and get our input mapping set up in our input asset All right So we want to set up all the different inputs that we want to take in from the player. Okay, so let's get this set up All right, so here we are in our scene Let's go and if you don't already have it open you can always go back into your or input and just double-click your Input asset or you can go and click this little button to bring up the window So let's let's actually let's get rid of all this stuff and just start fresh All right, I'm gonna delete that guy too. So we're gonna keep our action map here All right, and you can see it through some error, but it's still working I mean like I said, this is still in preview So you're bound to run into some sort of those error messages So the first input that we want to do is the cyclic action All right, so we're gonna do call this cyclic like so I'm gonna get rid of this Binding here and the cyclic is let's actually hit W on the keyboard so I can select this guy And then I'm gonna hit E on the keyboard So the cyclic is gonna take care of the pitch so the forward and back and then it's also gonna take care of the roll All right, so the Basically the banking of this guy Okay, and so let's go and get this guy hooked up so the first thing I want to do I'm gonna actually set this one to pass through and That way I can go and set this as a vector 2 All right, because we're gonna hook this up to the WASD key on the keyboard and to the left stick on the Xbox controller So I have the Xbox controller But the input system does make it really easy to hook up any of the other Controllers if you have like a ps4 controller or some sort of joystick something like that All right, so let's get the keyboard hooked up first And so what I'm gonna do come over here and hit the little plus button like so And I'm gonna say add 2d vector composite All right, and that just means that it's gonna give us, you know up down left and right. All right, so we're gonna call this WASD Like so and then for up we want to use the W key All right, so just like we saw before I'm just selecting the particular input coming over here to the Path drop down and then just typing in the key that I want to use. All right, so s so I want the s keyboard Left we want to use the A key on the keyboard and Then for the right we want to use the D key on the keyboard All right, so there's our first setup. So that's the keyboard So see how fast that is it's really cool rather than having to go and set this all up in scripts So let's go and add another one for the Xbox controller. So I'm gonna say Add another 2d vector composite and this is gonna be called the L stick for left stick All right, so we have the same bindings here this time around though what I want to do I'm gonna actually click back a couple times there I'm gonna use a gamepad and if I go all the way down to the bottom here We can actually go and select your specific type of controller that you have so in my case I have the Xbox controller and so I want to go to the left stick and for the up I just want to use up and then for down. I want to use the down like so and for left I Want to use the left and for right you might have guessed we want to use right Awesome, so we got all that stuff hooked up. All right, so the next input action that we need to set up I'm actually gonna leave that rolled out like so So the next one that we want to do is our pedals. So the pedals are gonna control the overall Yaw of the actual drone itself. Okay, so let's go get that hooked up So we need a new action for this. We don't want to add another binding We want to add a new action. All right, so we'll call this pedals like so and then and let's just delete the default one and I'm going to first Come over here and let's do a pass through for this and this one is going to be a Access let's do access here and let's do a 1d access composite That'll give me my negative and positive what I'm gonna do for the keyboard. So this is gonna be the arrows If I use the left and right keys on the keyboard Okay, so for the negative we are going to let's go back a couple times here So we are going to use the left arrow So if you just type in left arrow, you get the option there and then for the positive We're gonna use the right arrow And we'll spell it correctly there we go awesome So there we go. So now we got those guys all set up Okay, so the next thing that we want to do is the throttle. So the throttle is Going to be what makes us go up and down. All right, so let's go back to our inputs and add a new action All right, we're going to call this throttle like so and I'll delete the initial one there and This one is also going to be a value Alright, and this is also going to be an axis because we need the up and down Right, so we're going to add a new 1d axis composite that'll give us our negative and positive values All right, so we're going to call this arrows out and I totally forgot to set up the Xbox Version of the pedals would be that here in just a second So the up and down arrows what I'm going to use for the throttle All right, so we're going to use the down arrow for our negative and then we'll use the up arrow for the positive There we go, and then we need to go and add So let's collapse all this so we can see it here So we need to go add another 1d composite. We'll call this the so this is going to be on the right stick So our stick. All right, so for the bindings. I want to use the game pad. So It's coming up by default for me, which is awesome So I am going to but I do want to make sure I'm on the Xbox controller just to be safe Yeah, there we go. So I'm going to go to right stick So our negatives gonna be down and our positive is going to be up on The right stick. All right, cool. So now we got our arrows and our right stick all hooked up so for the pedals is going to be hooked to the Right stick as well. So we want to do another 1d axis So we'll call our stick for the name and then for our bindings This is gonna be left and right on the Xbox controllers right stick So we'll do left for negative and we'll do right for positive and with that we now have all of our Input setup that we need. So hopefully you can see how much faster that is. I hope that this particular package comes out of preview pretty soon because This is so much more efficient when it comes to setting up inputs You have to write so much less code, which is awesome So I'm gonna close the lecture out there and in the next lecture what we're gonna do is get our script hooked up So we can access all the values that are coming out of all these inputs