Skip to content

Customizing Button Configs? [Feature request] #172

Answered by leoetlino
RendellDraw asked this question in Q&A
Discussion options

You must be logged in to vote

This isn't really an issue or a feature request, so I have turned this into a discussion.

This is the function you would have to modify:

RST_HOOK void UiScheduleTriggerHook() {
auto* gctx = GetContext().gctx;
if (!gctx || gctx->type != game::StateType::Play)
return;
const bool zr = gctx->pad_state.input.buttons.IsSet(game::pad::Button::ZR);
const bool start = gctx->pad_state.input.new_buttons.IsSet(game::pad::Button::Start);
const bool select = gctx->pad_state.input.new_buttons.IsSet(game::pad::Button::Select);
if (!zr && select)
game::ui::OpenScreen(game::ui::Scree…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RendellDraw
Comment options

@leoetlino
Comment options

Answer selected by leoetlino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #171 on February 10, 2021 12:04.