llvm-mos-sdk
controller.h
Go to the documentation of this file.
1 // Copyright 2024 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdint.h>
7 
8 #ifndef _NEO_CONTROLLER_H
9 #define _NEO_CONTROLLER_H
10 
11 #include <neo6502.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
21 
26 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
index
char index
Definition: nesdoug.h:113
neo6502.h
neo_controller_read_default
uint8_t neo_controller_read_default(void)
Read the default controller's status.
neo_controller_read
uint32_t neo_controller_read(uint8_t index)
Read the specified controller's status.
std::uint32_t
::uint32_t uint32_t
Definition: cstdint:23
neo_controller_count
uint8_t neo_controller_count(void)
Read the connected controller count.