Is it possible to create a custom input event?

I want to create a custom input event in C++ for drag-select RTS-style. However, after digging around, I couldn’t find any example of this. Specifically I want to know that which class should I inherit from to make this happen. Also, since this input event can happen over multiple frames, I am thinking of implementing the check for its firing requirement inside player controller 's ProcessPlayerInput method. Is this a good idea, because I don’t know if ProcessPlayerInput get called every frame. It would be great if someone could point me to the right way to do this since I’m new to Unreal.

Hi,
you can create an action input event in the project settings>input.
I think you still need to program something like this:
On Mouse, press get mouse world location (begin x,y) and on release, you get the (end x,y) with this 2 x,y information you can do something like get all actors from class and create a check if those actors who are inside the 2vectors are selected.

Hope that answers your question & get you started.
Maybe search for Blueprint Tutorials as well you can then still do it in cpp.