HUD Blueprint not recieving mouse events

Good afternoon,

I created a HUD class and I have it running in debug now. What I’m running into is that the Event “Left Mouse Button” will never fire.

Player Controller I have

  1. Show Mouse Cursor Enabled
  2. Enable Click Events Enabled

Pawn

  1. Block Input Disabled

HUD class

  1. Is running and is the selected HUD class for the game mode.

No clue at this point why it wont fire any idea’s? Thanks.

I got the same problem but i created an blueprint interface called for example: RightMouseButton.

Now in the level blueprint i add:

input → rightmousebutton

connect the right mouse button pressed to the blueprint interface i just created

Now in the hud i go to blueprint props and add the right mouse button interface

and than add: event → rightmousebutton.

this will activate the right mouse button whenever pressed :slight_smile:

If your inputs are in a Class Blueprint and not the Level Blueprint before it will accept any inputs you have to Enable Input inside that Class Blueprint.
For example, when you pick up the scepter feed the execution wire into an “Enable Input” node, and attach a “Get Player Controller” to the appropriate input.
This took me a bit of head scratching to figure out. Hope it helps! :slight_smile:

For example, when you pick up the scepter feed the execution wire into an “Enable Input” node, and attach a “Get Player Controller” to the appropriate input. This took me a bit of head scratching to figure out. Hope it helps! :slight_smile:

I dont quite understand your expanation on how to enable the muose input in the HUD. How did you manage to be able to activate a for example click event in the HUD?

It’s just like setting up inputs such as moving, except that in a Class Blueprint (a stand-alone object blueprint, like a door or whatever) you need to call the Enable Input (and quite probably Disable Input) nodes to let it know that it should listen for inputs.

1 Like

No issue, glad I could help! Don’t forget to mark as solved to help out others :slight_smile:

Thank you. Know i understand. I thought “enable input” was a VR thing dunno why.

Thanks!

I can’t add a solved is wasn’t my question :slight_smile:

i used the function below but the way you describe it is even easier :slight_smile:

I tried more ways

  1. Adding Enable input inside my HUD BP doesn’t work
  2. Using interface doesn’t work
  3. Event dispatcher also doesn’t work

is there any other way to enable input in HUD, this issue is to tackle android back button. i need the back button to remove the HUD when pressed. but the button is not responding when the HUD is displayed

thanks