mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 04:12:02 +00:00
ams.mitm: fix old hid api references
This commit is contained in:
parent
ccd2798ae2
commit
9743f63f0d
3 changed files with 6 additions and 6 deletions
|
@ -21,8 +21,8 @@ namespace ams::mitm::hid {
|
||||||
|
|
||||||
Result HidMitmService::SetSupportedNpadStyleSet(const sf::ClientAppletResourceUserId &client_aruid, u32 style_set) {
|
Result HidMitmService::SetSupportedNpadStyleSet(const sf::ClientAppletResourceUserId &client_aruid, u32 style_set) {
|
||||||
/* This code applies only to hbl, guaranteed by the check in ShouldMitm. */
|
/* This code applies only to hbl, guaranteed by the check in ShouldMitm. */
|
||||||
style_set |= TYPE_SYSTEM | TYPE_SYSTEM_EXT;
|
style_set |= HidNpadStyleTag_NpadSystem | HidNpadStyleTag_NpadSystemExt;
|
||||||
return hidSetSupportedNpadStyleSetFwd(this->forward_service.get(), static_cast<u64>(this->client_info.process_id), static_cast<u64>(client_aruid.GetValue()), static_cast<HidControllerType>(style_set));
|
return hidSetSupportedNpadStyleSetFwd(this->forward_service.get(), static_cast<u64>(this->client_info.process_id), static_cast<u64>(client_aruid.GetValue()), style_set);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,11 @@
|
||||||
#include <stratosphere/sf/sf_mitm_dispatch.h>
|
#include <stratosphere/sf/sf_mitm_dispatch.h>
|
||||||
|
|
||||||
/* Command forwarders. */
|
/* Command forwarders. */
|
||||||
Result hidSetSupportedNpadStyleSetFwd(Service* s, u64 process_id, u64 aruid, HidControllerType type) {
|
Result hidSetSupportedNpadStyleSetFwd(Service* s, u64 process_id, u64 aruid, u32 style_set) {
|
||||||
const struct {
|
const struct {
|
||||||
u32 type;
|
u32 style_set;
|
||||||
u32 pad;
|
u32 pad;
|
||||||
u64 aruid;
|
u64 aruid;
|
||||||
} in = { type, 0, aruid };
|
} in = { style_set, 0, aruid };
|
||||||
return serviceMitmDispatchIn(s, 100, in, .in_send_pid = true, .override_pid = process_id);
|
return serviceMitmDispatchIn(s, 100, in, .in_send_pid = true, .override_pid = process_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Command forwarders. */
|
/* Command forwarders. */
|
||||||
Result hidSetSupportedNpadStyleSetFwd(Service* s, u64 process_id, u64 aruid, HidControllerType type);
|
Result hidSetSupportedNpadStyleSetFwd(Service* s, u64 process_id, u64 aruid, u32 style_set);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue