coastline 0.0.4
Loading...
Searching...
No Matches
peripheralinput.h
Go to the documentation of this file.
1#ifndef COASTLINE_N64_PERIPHERALINPUT_H
2#define COASTLINE_N64_PERIPHERALINPUT_H
3
4#include <PR/ultratypes.h>
5
7
8#define RANDNET_KEY_CONTROL 0x1107
9#define RANDNET_KEY_Z 0x0D08
10#define RANDNET_KEY_LEFT_SHIFT 0x0E01
11#define RANDNET_KEY_RIGHT_SHIFT 0x0E06
12
15
18
20void RememberRandnetKeys(s32 port, const u16 keys[3]);
21
24
27
30
31#endif /* COASTLINE_N64_PERIPHERALINPUT_H */
s32 ReadRandnetKeyboard(s32 port, u16 keys[3])
Read three keys from the Randnet keyboard on a port, or clear its key history if absent.
void RememberRandnetKeys(s32 port, const u16 keys[3])
Record the keys from the latest poll of a port.
void UpdateN64PeripheralInputForPlayer(s32 player)
Poll N64 peripherals for a player and merge their input.
s32 WasRandnetKeyDown(s32 port, u16 code)
Check whether a key was down during the previous poll of a port.
void UpdateGameKeyboardInput(PlayerInputState *state)
Merge keyboard controls into menus and races.
s32 IsRandnetShiftDown(void)
Check whether either Shift key is down on any Randnet keyboard.
The input of one player.
Definition playerinput.h:32
Integer and floating-point types of libultra.
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25