User Tag List

Page 1 of 3 123 LastLast
Results 1 to 40 of 115

Thread: [Full Project] Rama's UMG Rebindable Key System, Rebind keys at Runtime!

  1. #1
    2
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542

    Red face [Full Project] Rama's UMG Rebindable Key System, Rebind keys at Runtime!

    Name:  ReBindableKeysTitle.jpg
Views: 14920
Size:  265.6 KB

    Current Version: 4.10, Prior Engine Versions Are Available!

    ~~~

    Major Update ~ Assorted fixes contriubted by community members:

    https://forums.unrealengine.com/show...l=1#post492721

    ~~~

    Major Update ~ Added 3 New Nodes for Finding and Removing Key Bindings

    https://forums.unrealengine.com/show...l=1#post430656

    ~~~

    Major Update ~ Support for Mouse Inputs, LMB, RMB, MMB, MouseX, MouseY

    https://forums.unrealengine.com/show...l=1#post423187



    ~~~

    Major Update ~ Multiple Keys Per Mapping

    I've added support for rebinding a mapping during runtime which has multiple keys associated with it!
    https://forums.unrealengine.com/show...l=1#post334917

    ~~~

    Major Update ~ Axis Mappings

    I've added support for Axis Keys!
    https://forums.unrealengine.com/show...l=1#post334917

    ~~~

    Dear Community,

    I am giving you a full sample project as a download (8mb) where I've created a fully functional UMG Key Rebinding System!

    You can click on the name of any key and then simply enter a new one on the keyboard/gamepad (just pressing the button itself that you want to be the new binding!

    And I do track ctrl,alt,shift, and command!

    And the list is scrollable too!

    ~~~

    Video

    This video demonstrates how my Runtime Rebindable Key System does actually have a scrolling feature!

    You can have infinite key bindings in your list!

    I also demonstrate how easy and fast it is to add new keybindings usig Project Settings -> Input!

    And!

    Remember that I am giving you this whole project for your own use!



    ~~~

    Rebind Actions During Runtime

    And best of all, because of my Victory BP Library nodes, the changes you make in the Key Rebinding Menu instantly update the ingame character input component!

    So if you rebind Jump from spacebar to page up, it takes effect instantly!

    ~~~

    Why Am I Giving This For Free?

    Because its really important feature for any game and I just finished figuring out how to do it for Solus.

    I figured you would enjoy it as well, since it was honestly not that easy to do, and I had to really think about how to do both the UMG and the actual C++ code to dynamically update action mappings during runtime



    Rama

    ~~~

    Download

    Here's the full project for you!

    Wiki Link to Download Page
    https://wiki.unrealengine.com/File:ReBindableKeys.zip

    ~~~

    How To Use My Menu

    Go in game and press the K key!

    Click on the black and red buttons to rebind the jump button!

    Add new actions any time using Project Settings->Input

    ~~~

    Victory BP Library

    UE4 Forum Link
    https://forums.unrealengine.com/show...l=1#post176137



    Rama
    Last edited by Rama; 03-14-2016 at 02:12 AM.
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  2. #2
    0
    This is an awesome job! Thanks Rama!

  3. #3
    0
    Nice work Rama. This will be handy.

  4. #4
    0
    Thank you so mush Rama

  5. #5
    0
    I planned on adding proper key binding this week, so your timing is awesome

    And thank you for your earlier work on GetAllWidgetsOfClass() and explanation behind its use.
    I'm now using it for a basic loading screen in Ground Branch.
    Works well
    Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.


  6. #6
    0
    Hi Rama! Many thanks for your Rebindable Key System.

    I've tried it and I've found 2 little "problems".

    1- If I press K when I walk, the character keeps walking. It's easy to fix.
    2- Is it possible to avoid multiple key binding? At the moment we can use the same Input Key for every action...
    Last edited by Diat Funa; 11-08-2014 at 11:36 AM.

  7. #7
    0
    Luminary
    Join Date
    Apr 2014
    Posts
    1,575
    Thank you ! On my way to try it ^^

  8. #8
    0
    Thanks a lot Rama!

  9. #9
    0
    Great job mate : ) this will be of use to so many. thanks for the great free content!

  10. #10
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Great to hear from you Demolition Man, Devero, and Chris!




    Quote Originally Posted by Diat Funa View Post
    Hi Rama! Many thanks for your Rebindable Key System.

    1- If I press K when I walk, the character keeps walking. It's easy to fix.
    2- Is it possible to avoid multiple key binding? At the moment we can use the same Input Key for every action...
    You have the whole project as a download, do whatever you want to it!

    I personally like having ability to bind same key to multiple actions, its really important in games that have multiple modes. You can stop the action from firing based on some internal way of tracking what game mode you are in.



    Quote Originally Posted by Kris View Post
    I planned on adding proper key binding this week, so your timing is awesome

    And thank you for your earlier work on GetAllWidgetsOfClass() and explanation behind its use.
    I'm now using it for a basic loading screen in Ground Branch.
    Works well
    You're welcome Kris!

    Quote Originally Posted by Jacky View Post
    Thanks a lot Rama!
    Hee hee!

    Quote Originally Posted by Fen View Post
    Thank you ! On my way to try it ^^
    Enjoy Fen! Feel free to post what you do with it!

    Quote Originally Posted by SaxonRah View Post
    Great job mate : ) this will be of use to so many. thanks for the great free content!
    You're welcome SaxonRah!
    Last edited by Rama; 11-08-2014 at 10:18 PM.
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  11. #11
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    ~~~

    Video

    This video demonstrates how my Runtime Rebindable Key System does actually have a scrolling feature!

    You can have infinite key bindings in your list!

    I also demonstrate how easy and fast it is to add new keybindings usig Project Settings -> Input!

    And!

    Remember that I am giving you this whole project for your own use!

    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  12. #12
    0
    One thing I just noticed is that this implementation doesn't include axis mappings - e.g. MoveForward.
    I'm sure Rama will sort that though :P
    Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.


  13. #13
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by Kris View Post
    One thing I just noticed is that this implementation doesn't include axis mappings - e.g. MoveForward.
    I'm sure Rama will sort that though :P
    Yea I didnt do Axismappings yet, and that will be more C++ to do that
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  14. #14
    0
    Quote Originally Posted by Rama View Post
    Yea I didnt do Axismappings yet, and that will be more C++ to do that
    Yep.
    Looking at other potential issues too, such as duplicate entries for Stop/Start commands etc.
    Can be fixed when input component is init'd, but it may pay to create a way to bind two or more actions under to key.
    Looking at the UT source, they've have a system for this, but you have to manually put them together.
    Hmm...
    Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.


  15. #15
    0
    Samaritan

    Join Date
    Mar 2014
    Posts
    121
    Rama! This is fantastic! This feature should be added by default to the engine for blueprints. Looking forward to the axis mappings getting added!
    Full Time UE4 Tutor! www.tesla-dev.com
    Watch, Learn & Create using my tutorials here: *https://www.youtube.com/playlist?lis...8Zjziv4gUqjLZ_*

  16. #16
    0
    Here it is a screenshot of a modified version that adds the axis mapping:



    Of course, its not supposed to have MoveRight1.0, MoveRight-1.0 etc.
    I am trying to pass it into a "Find Text in Localization table" Blueprint node to get a proper command name.

    Has anyone had any luck using one?
    Can you actually set the Namespace & Key manually so you can test things properly?

    Can't seem to info on it speficically, though I have found the GatherText commandlet thingy.
    And who do you think I came across why looking into it?
    You guessed it... Rama.
    The bugga gets everywhere!
    Last edited by Kris; 11-09-2014 at 10:48 AM. Reason: Apparently I used a bad word.
    Rule#21: Be polite, be professional, but have a plan to kill everyone you meet.


  17. #17
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by Kris View Post
    Here it is a screenshot of a modified version that adds the axis mapping:

    This is a great pic Kris!

    Very stylized / polished look!

    Awesome work!



    Rama
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  18. #18
    0
    I'm currently moving the interface on our game from code to UMG, and already added this. Took me 2 minutes, great work Rama! Thank you very much for sharing!
    Jefferson Pinheiro
    Professor - Design de Games UniRitter / Porto Alegre, Brazil

  19. #19
    0
    This is so great. I love it.

  20. #20
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by Xendran View Post
    This is so great. I love it.
    Yaay!

    Quote Originally Posted by Ixiguis View Post
    I'm currently moving the interface on our game from code to UMG, and already added this. Took me 2 minutes, great work Rama! Thank you very much for sharing!
    Your're welcome Ixiguis, yaay! Glad you are enjoying it!
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  21. #21
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542

    Red face

    Reminder about this free Key Rebinding project that I did for you all!

    Why Am I Giving This For Free?

    Because its really important feature for any game and I just finished figuring out how to do it for Solus.

    I figured you would enjoy it as well, since it was honestly not that easy to do, and I had to really think about how to do both the UMG and the actual C++ code to dynamically update action mappings during runtime



    Rama

    ~~~

    Download (UE4 Engine Version 4.5)

    Here's the full project for you!

    Wiki Link to Download Page
    https://wiki.unrealengine.com/File:ReBindableKeys.zip

    ~~~

    How To Use My Menu

    Go in game and press the K key!

    Click on the black and red buttons to rebind the jump button!

    Add new actions any time using Project Settings->Input




    Rama
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  22. #22
    0
    Hey Rama,

    Any plans on updating this plugin to 4.6.1?

    Edit: Nevermind, just found this! https://www.youtube.com/watch?v=lr87zPbki_4

    Thank you!
    Last edited by Breakobs; 12-17-2014 at 07:50 PM.

  23. #23
    0
    Quote Originally Posted by Diat Funa View Post
    1- If I press K when I walk, the character keeps walking. It's easy to fix.
    Diat Funa: I have the same problem with my character continuing to move when I open my inventory if he is already moving. What is the fix for that? Thanks!

  24. #24
    0
    Does anyone know if this can be done inside UMG or, alternatively, if I do it in C++, how do I make it work with UMG?

  25. #25
    0
    This is really awesome, thanks Rama!

  26. #26
    0
    broken for 4.6?

  27. #27
    0
    Another great resource by Rama!
    Game Developer @ LODZERO - My Twitter | tomlooman.com UE4 samples & tutorials | C++ Survival Game (Open-source template)

  28. #28
    0
    Hello guys,

    I have a newbie question.
    On 4.6.1 Engine version, I'm trying to handle the blueprint function on UMG called OnKeyDown to retrieve and promote variable "Key Event" and the use rama's functions.
    However I can't find the way to trigger the function. There is something wrong by my side?

    Thanks in advance!

  29. #29
    0
    Resolved, I called "Set Input Mode UIOnly"

  30. #30
    0
    Is there a way to get the updated input axis version?

  31. #31
    0
    Promoter
    Join Date
    May 2014
    Posts
    293
    I have been having trouble getting this to work for my game and have thus had to put keybinding on the backburner for now. Anytime I try to get a key press it immediately assumes the space bar and nothing else. Really strange.
    - Russell Meakim AKA The Castle
    BLOG: https://steemit.com/@thecastle
    YouTube: https://www.youtube.com/user/zZCastleZz
    Twitter: @zZCastleZz

  32. #32
    0
    I have this working on Unreal Engine 4.7. It took a few minor fixes so I made a quick video to help anyone else looking for answers. Oh and thanks again Rama. Please add a donate button!
    https://www.youtube.com/watch?v=GBl-6u9fWe0

  33. #33
    0
    Oh and by the way, I'm wondering about a default set. Any ideas on how to set some default values (to restore to)?

  34. #34
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by Tom Looman View Post
    Another great resource by Rama!
    Thanks Tom! (my record for most-timely-response I think)



    Rama
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  35. #35
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by Emrico1 View Post
    I have this working on Unreal Engine 4.7. It took a few minor fixes so I made a quick video to help anyone else looking for answers. Oh and thanks again Rama. Please add a donate button!
    https://www.youtube.com/watch?v=GBl-6u9fWe0
    ~~~

    Thank You Emrico!

    Thanks for making the video! I've reposted it with forum formatting!

    Your desktop background and toolbar background are so much fun!

    ~~~

    Video on Upgrading My Project to 4.7, by Emrico



    ~~~

    Donations

    People who want to send me donations can PM me

    I've also set up a Donations page my fitness website here:

    Rama's Diet & Fitness Website
    http://lightningfitness.org/donate/



    Rama
    Last edited by Rama; 05-25-2015 at 05:53 PM.
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  36. #36
    0
    Thanks again Rama!
    The desktop background was created by my seven year old niece while I was teaching her photoshop. I love it (even despite the comic sans).
    The Anime girl was a joke between my Nephew (he suggested boobs in the thumbnail to get noticed), I kind of regret that one haha.
    Last edited by Emrico1; 05-25-2015 at 05:45 PM.

  37. #37
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542

    Red face

    Quote Originally Posted by Emrico1 View Post
    Thanks again Rama!
    The desktop background was created by my seven year old niece while I was teaching her photoshop. I love it (even despite the comic sans).
    The Anime girl was a joke between my Nephew (he suggested boobs in the thumbnail to get noticed), I kind of regret that one haha.
    Well to be honest the hot girl was my favorite part, along with the Rainbow Toolbar!



    Rama
    Last edited by Rama; 05-25-2015 at 05:53 PM.
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  38. #38
    0
    Rama, is there a way with this system to support binding multiple keys to the same action? e.g. both LMB and the F key fire a gun? I know the opposite is doable (e.g. F key does both fire and reload) and I know UE4 supports multiple action bindings, but it appears the Victory Key struct only takes a single key struct in per named InputAction?

  39. #39
    0
    The Rainbow Warrior



    Join Date
    Mar 2014
    Posts
    2,542
    Quote Originally Posted by RhythmScript View Post
    Rama, is there a way with this system to support binding multiple keys to the same action? e.g. both LMB and the F key fire a gun? I know the opposite is doable (e.g. F key does both fire and reload) and I know UE4 supports multiple action bindings, but it appears the Victory Key struct only takes a single key struct in per named InputAction?
    This is a great idea! When I get around to updating this project properly, I can check out your request!

    Anyone remind me I said this in about 2 weeks

    Rama
    100+ UE4 C++ Tutorials on the UE4 Code Wiki, including UE4 Multi-Threading!

    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    Visit www.ue4code.com to see lots of videos about my C++ Creations! ♥ Rama

  40. #40

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •