mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-23 18:24:23 -05:00
28 lines
682 B
C++
28 lines
682 B
C++
#pragma once
|
|
#include <string>
|
|
#include <switch.h>
|
|
|
|
namespace sys
|
|
{
|
|
namespace input
|
|
{
|
|
// Inits pad
|
|
void init(void);
|
|
|
|
// Updates pad
|
|
void update(void);
|
|
|
|
// Returns if button was pressed
|
|
bool buttonDown(HidNpadButton button);
|
|
bool buttonHeld(HidNpadButton button);
|
|
bool buttonReleased(HidNpadButton button);
|
|
|
|
uint64_t buttonsDown(void);
|
|
uint64_t buttonsHeld(void);
|
|
uint64_t buttonsReleased(void);
|
|
|
|
// Gets input and returns C++ string
|
|
std::string getString(SwkbdType swkbdType, const std::string &defaultText, const std::string &headerText, size_t maximumLength);
|
|
}
|
|
}
|