mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-17 14:00:25 +02:00
A hosted game gets an 8-character join code (Crockford base 32) besides its invite link, shown under the lobby's buttons. On the system link list, X opens the game's keyboard to type a code in; the code's topic and key come from a slow PBKDF2 derivation, the host answers an ask on that topic through the signalling brokers with its invite sealed with the key, and the joiner joins as with the link. Codes in join_link.txt work too. Also: the clipboard text last seen is kept from run to run, so a run's own invite is not joined again at the next start; in menus a held stick repeats after 350 ms and then every 90 ms, and its threshold is 70%. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
875 B
C
51 lines
875 B
C
/*
|
|
VIRTUAL_KEYBOARD.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __VIRTUAL_KEYBOARD_H
|
|
#define __VIRTUAL_KEYBOARD_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries/cseries.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
/* ---------- prototypes/EXAMPLE.C */
|
|
|
|
boolean virtual_keyboard_initialize(
|
|
void);
|
|
void virtual_keyboard_dispose(
|
|
void);
|
|
boolean virtual_keyboard_launch(
|
|
wchar_t *text_buffer,
|
|
word buffer_size,
|
|
short caption_index);
|
|
boolean virtual_keyboard_active(
|
|
void);
|
|
void virtual_keyboard_close(
|
|
void);
|
|
boolean virtual_keyboard_last_exit_saved_text(
|
|
void);
|
|
void virtual_keyboard_process(
|
|
void);
|
|
void virtual_keyboard_render(
|
|
void);
|
|
#ifdef HALO_ANDROID
|
|
void virtual_keyboard_set_caption(
|
|
wchar_t const *caption);
|
|
#endif
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __VIRTUAL_KEYBOARD_H
|