-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WPE] Add gamepad support #911
Conversation
1ba8388
to
62a3f67
Compare
EWS run on previous version of this PR (hash be1c7cc) |
EWS run on previous version of this PR (hash dedb8d0) |
EWS run on previous version of this PR (hash 823a5a5) |
EWS run on previous version of this PR (hash 215fc0b) |
EWS run on previous version of this PR (hash ee77871) |
EWS run on previous version of this PR (hash dedb8d0) |
EWS run on previous version of this PR (hash 823a5a5) |
EWS run on previous version of this PR (hash 215fc0b) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a couple of touch-ups before landing, but it is almost ready.
EWS run on previous version of this PR (hash dedb8d0)
|
EWS run on previous version of this PR (hash 823a5a5)
|
EWS run on previous version of this PR (hash 215fc0b)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
https://bugs.webkit.org/show_bug.cgi?id=230630 With gamepad support in libwpe[1] is possible to communicate gamepads events between the application (cog, for example) and WPEWebKit. This patch are the changes required to attend that communication and enable the gamepad support in WPE port. 1. WebPlatformForEmbedded/libwpe#88 Reviewed by Adrian Perez de Castro. * LayoutTests/platform/wpe/TestExpectations: Enable skipped tests. * Source/WebCore/PlatformWPE.cmake: Add headers if enabled. * Source/WebCore/SourcesWPE.txt: Add source files. * Source/WebCore/platform/gamepad/wpe/WPEGamepad.cpp: Added. (WebCore::WPEGamepad::WPEGamepad): (WebCore::WPEGamepad::~WPEGamepad): (WebCore::WPEGamepad::buttonPressedOrReleased): (WebCore::WPEGamepad::absoluteAxisChanged): * Source/WebCore/platform/gamepad/wpe/WPEGamepad.h: Added. * Source/WebCore/platform/gamepad/wpe/WPEGamepadProvider.cpp: Added. (WebCore::WPEGamepadProvider::singleton): (WebCore::WPEGamepadProvider::WPEGamepadProvider): (WebCore::WPEGamepadProvider::~WPEGamepadProvider): (WebCore::WPEGamepadProvider::startMonitoringGamepads): (WebCore::WPEGamepadProvider::stopMonitoringGamepads): (WebCore::WPEGamepadProvider::gamepadConnected): (WebCore::WPEGamepadProvider::gamepadDisconnected): (WebCore::WPEGamepadProvider::indexForNewlyConnectedDevice): (WebCore::WPEGamepadProvider::removeGamepadForId): (WebCore::WPEGamepadProvider::initialGamepadsConnectedTimerFired): (WebCore::WPEGamepadProvider::inputNotificationTimerFired): (WebCore::WPEGamepadProvider::scheduleInputNotification): (WebCore::WPEGamepadProvider::inputView): * Source/WebCore/platform/gamepad/wpe/WPEGamepadProvider.h: Added. * Source/WebKit/SourcesWPE.txt: Add source files. * Source/WebKit/UIProcess/API/wpe/WPEView.cpp: Reports the view where gamepad currently operates. (WKWPE::m_backend): (WKWPE::View::~View): (WKWPE::View::setViewState): (WKWPE::View::platformWebPageProxyForGamepadInput): * Source/WebKit/UIProcess/API/wpe/WPEView.h: * Source/WebKit/UIProcess/Gamepad/UIGamepadProvider.cpp: * Source/WebKit/UIProcess/Gamepad/wpe/UIGamepadProviderWPE.cpp: Added. (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider): (WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput): (WebKit::UIGamepadProvider::platformStopMonitoringInput): (WebKit::UIGamepadProvider::platformStartMonitoringInput): * Source/cmake/OptionsWPE.cmake: Canonical link: https://commits.webkit.org/253720@main
90e79f0
to
ab0e247
Compare
Committed 253720@main (ab0e247): https://commits.webkit.org/253720@main Reviewed commits have been landed. Closing PR #911 and removing active labels. |
ab0e247
90e79f0