how can a home-made controller device be recognized by a UE4 game?

hey friends, i’m a college student and i’ve been working on making a new controller device for PC and especially for UE4 games on PC. But there’s tons of puzzles that stop me going futher. Should i make sure that my device can be recognized by my laptop on the first step? If so, after my device is recognized by computer, what can i do to let it work as a game controller in a game(such as, bind a moveable static mesh to my device, when i move my device, the mesh fellows )?
Does my idea have something to do with UE4’s original codes, which means that i have to change some of it’s codes?

Or else, is there any existed C++ API that can realize my idea?

just like the other controller devices on the picture.

Yes your device should be recognize by your laptop in most of the cases - since you do not tell us what interface the device is using I can not answer this question.

You shouldn’t modify UE4 Code for such a reason - Maximum issue a plugin for that.

You have not to bind your device to any mesh…
You should make your device as a generic Input for UE4…

Keyboard and mouse are not bound to any mesh right? They are bound to input controller
so if you want to make a controller - you should do the same.

Take a look at SteamController source code to get started.