Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Emulators
xboxdrv
Fix-controller-declarations-and-operators.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-controller-declarations-and-operators.patch of Package xboxdrv
diff '--color=auto' -rub xboxdrv-0.8.10/src/controller.cpp xboxdrv-0.8.10-patched/src/controller.cpp --- xboxdrv-0.8.10/src/controller.cpp 2024-04-06 00:01:43.000000000 -0300 +++ xboxdrv-0.8.10-patched/src/controller.cpp 2024-05-13 00:00:55.201932106 -0300 @@ -125,15 +125,14 @@ return m_udev_device; } -void -Controller::set_active(bool v) -{ - if (m_is_active != v) - { - log_debug("activation status: " << v << " " << m_activation_cb); +void Controller::set_active(bool v) { + if (m_is_active != v) { + std::ostringstream oss; + oss << "activation status: " << v << " " + << m_activation_cb.target<void*>(); + log_debug(oss.str()); m_is_active = v; - if (m_activation_cb) - { + if (m_activation_cb) { m_activation_cb(); } } diff '--color=auto' -rub xboxdrv-0.8.10/src/controller.hpp xboxdrv-0.8.10-patched/src/controller.hpp --- xboxdrv-0.8.10/src/controller.hpp 2024-04-06 00:01:43.000000000 -0300 +++ xboxdrv-0.8.10-patched/src/controller.hpp 2024-05-13 01:02:34.083930235 -0300 @@ -23,6 +23,7 @@ #include <boost/function.hpp> #include <memory> +#include <vector> extern "C" { #include <libudev.h> @@ -51,6 +52,8 @@ public: Controller(); + const std::vector<uint16_t>& get_ff_features() const { return m_ff_features; } + int get_num_ff_effects() const { return m_num_ff_effects; } virtual ~Controller(); void set_rumble(uint8_t left, uint8_t right);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor