libmsx
C library for MSX
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
Variables
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
g
i
j
l
m
o
p
r
s
t
v
z
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
i
s
v
Macros
a
b
c
f
i
l
m
n
o
p
r
s
t
v
w
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1
// -*- coding: utf-8-unix -*-
2
/*
3
* Copyright (c) 2021-2025 Daishi Mori (mori0091)
4
*
5
* This software is released under the MIT License.\n
6
* See https://github.com/mori0091/libmsx/blob/main/LICENSE
7
*
8
* GitHub libmsx project\n
9
* https://github.com/mori0091/libmsx
10
*/
22
#pragma once
23
24
#ifndef INPUT_H
25
#define INPUT_H
26
27
#include <stdint.h>
28
41
#define VK_UP (1 << 0)
42
48
#define VK_DOWN (1 << 1)
49
55
#define VK_LEFT (1 << 2)
56
62
#define VK_RIGHT (1 << 3)
63
69
#define VK_FIRE_0 (1 << 4)
70
76
#define VK_FIRE_1 (1 << 5)
77
112
uint8_t
joypad_get_state
(uint8_t controller);
113
116
#endif
joypad_get_state
uint8_t joypad_get_state(uint8_t controller)
MSX Get the status of the joystick buttons and levers.
include
input.h
Generated by
1.12.0