Announcement

Collapse
No announcement yet.

How to remove the binded actions from key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to remove the binded actions from key

    how to remove the binded actions from k

    #2
    Hi Ryuikuya,

    You can access the input bindings in the Edit>Editor Preferences> Keyboard Shortcuts menu. If you are looking to bind this key to a function in game, please check the Edit> Project Settings> Input menu. These give you access to the keyboard shortcuts and inputs for the editor and your specific project.
    Adam Davis | Marketplace Support | Epic Games
    How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

    Comment


      #3
      Are there any dynamic method to remove it in c++

      Comment


        #4
        There is RemoveActionMapping in UInputSettings

        Comment


          #5
          Originally posted by Bruce Nesbit View Post
          There is RemoveActionMapping in UInputSettings
          I tried it. but it just can work in next time I start game.

          Comment


            #6
            Originally posted by Bruce Nesbit View Post
            There is RemoveActionMapping in UInputSettings
            thank you for you answer. do you know how to update my remapping in the game.

            Following is my code. as you can see I remap actions binding.but it can not work right now.
            it just work in next time I restart my game.

            const FName name = FName(*function_name);
            const FKey oldKey = FKey(*old_key_name);

            const UInputSettings* DefaultInputSettings = GetDefault<UInputSettings>();

            const FInputActionKeyMapping fInputActionKeyMapping(name, oldKey);
            ((UInputSettings*)DefaultInputSettings)->RemoveActionMapping(fInputActionKeyMapping);

            ((UInputSettings*)DefaultInputSettings)->SaveKeyMappings();

            aShooterPlayerController->PlayerInput->ForceRebuildingKeyMaps();

            Comment


              #7
              You should checkout SVehicleControlsSetup::RemapKey in the Vehicle sample game. It does exactly what you require.

              Comment


                #8
                Are there any dynamic method to remove it in c++
                http://www.soran.edu.iq

                soran university
                Faculty of science
                Assistant programer

                Comment

                Working...
                X