llvm-mos-sdk
neo6502
api
neo
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
20
uint8_t
neo_controller_read_default
(
void
);
21
25
uint8_t
neo_controller_count
(
void
);
26
30
uint32_t
neo_controller_read
(
uint8_t
index
);
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.
Generated by
1.8.17