GithubHelp home page GithubHelp logo

evernewjoy / ue4gamepadumg Goto Github PK

View Code? Open in Web Editor NEW
124.0 124.0 47.0 29.85 MB

Unreal Engine 4 gamepad plugin so you can use a gamepad like a mouse in UMG

License: MIT License

C++ 93.12% C 5.83% C# 1.04%

ue4gamepadumg's People

Contributors

01f0 avatar evernewjoy avatar metahusk avatar xcloudx01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ue4gamepadumg's Issues

Mouse diplacement with big cursor

Hi
I recompiled source code for unreal 5.0. Everything works fine except there is a displacement between the position of the cursor and the image . This displacement is very noticeable on 4k screens. Is it an issue or Am I doing something wrong?

Change deprecated SetInputPreProcessor to RegisterInputPreProcessor

This warning below is generated during compiling.
It looks like SetInputPreProcessor has to be changed to RegisterInputPreProcessor in GameAnalogCursor.cpp Line 27 & 48.

>C:\UEProject\Plugins\GamepadUMGPlugin\Plugins\GamepadUMGPlugin\Source\GamepadUMGPlugin\Private\GameAnalogCursor.cpp(27): warning C4996: 'FSlateApplication::SetInputPreProcessor': SetInputPreProcessor(...) is deprecated. Use RegisterInputPreProcessor(...) and/or UnregisterInputPreProcessor(...) / UnregisterAllInputPreProcessors(...) instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
4>C:\UnrealEngine\Engine\Source\Runtime\Slate\Public\Framework/Application/SlateApplication.h(1281): note: see declaration of 'FSlateApplication::SetInputPreProcessor'
4>C:\UEProject\Plugins\GamepadUMGPlugin\Plugins\GamepadUMGPlugin\Source\GamepadUMGPlugin\Private\GameAnalogCursor.cpp(48): warning C4996: 'FSlateApplication::SetInputPreProcessor': SetInputPreProcessor(...) is deprecated. Use RegisterInputPreProcessor(...) and/or UnregisterInputPreProcessor(...) / UnregisterAllInputPreProcessors(...) instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
4>C:\UnrealEngine\Engine\Source\Runtime\Slate\Public\Framework/Application/SlateApplication.h(1281): note: see declaration of 'FSlateApplication::SetInputPreProcessor'

Not clear how UI interaction/mouse clicks are simulated

I'm building a project where you can use a handtracker to navigate UI. I manage to set the position of the mouse cursor on hand movement but I don't know how to simulate a mouse click.

The following piece of code does not simulate a mouse click that works in UI. It just trigger the mouse LMB event.
FViewportClient* Client = GEngine->GameViewport->Viewport->GetClient();
FKey MouseLMB = EKeys::LeftMouseButton;
Client->InputKey(GEngine->GameViewport->Viewport, 0, MouseLMB, EInputEvent::IE_Pressed);

I was hoping to find a hint in your code but I don't understand how you simulate mouse clicks in the UI.
Can you help me out?

Linux/Mac Support

I'm working on a game that's using a version of this plugin that someone modified to be compatible with ue4.25 but it doesn't work on linux or mac machines. Is there some way I can get it to work on those in addition to windows?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.