mirror of
https://github.com/zeldaret/botw
synced 2026-06-19 07:26:57 -04:00
18c60323a9
git subrepo clone https://github.com/open-ead/sead lib/sead subrepo: subdir: "lib/sead" merged: "1b66e825d" upstream: origin: "https://github.com/open-ead/sead" branch: "master" commit: "1b66e825d" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone (merge) https://github.com/open-ead/nnheaders lib/NintendoSDK subrepo: subdir: "lib/NintendoSDK" merged: "9ee21399f" upstream: origin: "https://github.com/open-ead/nnheaders" branch: "master" commit: "9ee21399f" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone https://github.com/open-ead/agl lib/agl subrepo: subdir: "lib/agl" merged: "7c063271b" upstream: origin: "https://github.com/open-ead/agl" branch: "master" commit: "7c063271b" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596" git subrepo clone https://github.com/open-ead/EventFlow lib/EventFlow subrepo: subdir: "lib/EventFlow" merged: "c35d21b34" upstream: origin: "https://github.com/open-ead/EventFlow" branch: "master" commit: "c35d21b34" git-subrepo: version: "0.4.3" origin: "ssh://git@github.com/ingydotnet/git-subrepo" commit: "2f68596"
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
/**
|
|
* @file hid.h
|
|
* @brief Functions that help process gamepad inputs.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nn/types.h>
|
|
#include <nn/util.h>
|
|
|
|
namespace nn {
|
|
namespace hid {
|
|
struct NpadHandheldState;
|
|
struct NpadStyleTag;
|
|
|
|
struct ControllerSupportArg {
|
|
u8 mMinPlayerCount;
|
|
u8 mMaxPlayerCount;
|
|
u8 mTakeOverConnection;
|
|
bool mLeftJustify;
|
|
bool mPermitJoyconDual;
|
|
bool mSingleMode;
|
|
bool mUseColors;
|
|
sead::Color4u8 mColors[4];
|
|
u8 mUsingControllerNames;
|
|
char mControllerNames[4][0x81];
|
|
};
|
|
|
|
struct ControllerSupportResultInfo {
|
|
int mPlayerCount;
|
|
int mSelectedId;
|
|
};
|
|
|
|
void InitializeNpad();
|
|
void SetSupportedNpadIdType(u32 const*, u64);
|
|
void SetSupportedNpadStyleSet(nn::util::BitFlagSet<32, nn::hid::NpadStyleTag>);
|
|
void GetNpadStyleSet(u32 const&);
|
|
void GetNpadStates(nn::hid::NpadHandheldState*, s32, u32 const&);
|
|
static int ShowControllerSupport(nn::hid::ControllerSupportResultInfo*,
|
|
ControllerSupportArg const&);
|
|
|
|
}; // namespace hid
|
|
}; // namespace nn
|