mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 05:27:58 +00:00
Inhibit screensaver using dbus or xdg-screensaver
This commit is contained in:
@@ -26,7 +26,6 @@ static inline EDolphinControllerType parseType(unsigned char status) {
|
||||
}
|
||||
|
||||
static inline EDolphinControllerType parseState(DolphinControllerState* stateOut, uint8_t* payload, bool& rumble) {
|
||||
memset(stateOut, 0, sizeof(DolphinControllerState));
|
||||
unsigned char status = payload[0];
|
||||
EDolphinControllerType type = parseType(status);
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ struct HIDReports {
|
||||
static void _AddItem(std::map<int32_t, std::vector<HIDMainItem>>& m, uint32_t flags, const HIDItemState& state) {
|
||||
std::vector<HIDMainItem>& report = m[state.m_reportID];
|
||||
report.reserve(report.size() + state.m_reportCount);
|
||||
for (int i = 0; i < state.m_reportCount; ++i)
|
||||
for (uint32_t i = 0; i < state.m_reportCount; ++i)
|
||||
report.emplace_back(flags, state, i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user