Would like to ask for the below situation:
In player controller BP, i press “E” key and create a widget - add to viewport - set input mode UI only (but i want the mouse wheel up & down to be usable)
or another situation set input mode game and UI only (but i want to disable the usage of keyboard).
Kindly if there is any help.
In the widget you can override Mouse functions:
This will give you the chance to handle mouse input while this widget is in focus.
Not sure if I understand what you expect to happen here:
another situation set input mode game
and UI only (but i want to disable the
usage of keyboard).
The input nodes are not about keyboard and/or mouse specifically. They are about what and when responds to the input.
Game and UI mode means that the UI gets to act first and if it does, nothing is sent to the controller.
If you do not want keyboard to be available to UI / Game, set up a bool after your action mappings and switch it around the way you desire.
And how can I get the mouse wheel axis inside of OnMouseWheel function.
Thanks in advance !