Get 'composite part' on button press (new input system)

Hey guys,

I want to get the Composite Part of the pressed button, but I can not find out how I should do this.
For example, if the user presses the A button on the keyboard, it should return composite part ‘Left’. If D is pressed, I’d expect composite part ‘Right’.

So how should I approach it on the following setup?

_playerInputActions.Player.Movement.started += GetCompositePart;

private void GetCompositePart(InputAction.CallbackContext context)
        print(context. <CompositeParthere>);

Thanks for reading :slight_smile:

Have you already know how it can be done? Because i have similar problem :confused: