[C++] mouse events not working in the world

Hey fmaacmab-

The code snippet provided appears to be from the default player controller for the project, have you changed which player controller is being used by the game mode class? If that’s not the case, please add a debug line to this section of code to check that it’s being called properly.

if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 4.f, FColor::Magenta, TEXT(""));
}

You can use this code and just add something to TEXT("") . You’ll also need to have an include statement for the Engine.h file for GEngine to compile properly. If you don’t see your message being printed during PIE then it sounds like the mouse input is not being at all. If so, it may be best if you could provide a copy of your project for me to test directly.

Additionally, what version of the engine was the project created in and has the project been upgraded through any versions? If so, does the input still work on the older engine versions?