Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
fuse-libretro
Commits
9e7b1d24
Unverified
Commit
9e7b1d24
authored
Apr 25, 2022
by
Alexander Trufanov
Committed by
GitHub
Apr 25, 2022
Browse files
Allow Sinclair Keyboard at port 1
parent
71557910
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libretro.c
View file @
9e7b1d24
...
...
@@ -544,24 +544,21 @@ void retro_set_environment(retro_environment_t cb)
{
env_cb
=
cb
;
static
const
struct
retro_controller_description
controllers
[]
=
{
static
const
struct
retro_controller_description
controllers
_and_kb
[]
=
{
{
"Cursor Joystick"
,
RETRO_DEVICE_CURSOR_JOYSTICK
},
{
"Kempston Joystick"
,
RETRO_DEVICE_KEMPSTON_JOYSTICK
},
{
"Sinclair 1 Joystick"
,
RETRO_DEVICE_SINCLAIR1_JOYSTICK
},
{
"Sinclair 2 Joystick"
,
RETRO_DEVICE_SINCLAIR2_JOYSTICK
},
{
"Timex 1 Joystick"
,
RETRO_DEVICE_TIMEX1_JOYSTICK
},
{
"Timex 2 Joystick"
,
RETRO_DEVICE_TIMEX2_JOYSTICK
},
{
"Fuller Joystick"
,
RETRO_DEVICE_FULLER_JOYSTICK
}
};
static
const
struct
retro_controller_description
keyboards
[]
=
{
{
"Sinclair Keyboard"
,
RETRO_DEVICE_SPECTRUM_KEYBOARD
},
{
"Fuller Joystick"
,
RETRO_DEVICE_FULLER_JOYSTICK
},
{
"Sinclair Keyboard"
,
RETRO_DEVICE_SPECTRUM_KEYBOARD
}
};
static
const
struct
retro_controller_info
ports
[
MAX_PADS
+
1
]
=
{
{
controllers
,
sizeof
(
controllers
)
/
sizeof
(
controllers
[
0
])
},
// port 1
{
controllers
,
sizeof
(
controllers
)
/
sizeof
(
controllers
[
0
])
},
// port 2
{
keyboards
,
sizeof
(
keyboards
)
/
sizeof
(
keyboards
[
0
])
},
// port 3
{
controllers
_and_kb
,
sizeof
(
controllers
_and_kb
)
/
sizeof
(
controllers
_and_kb
[
0
])
},
// port 1
{
controllers
_and_kb
,
sizeof
(
controllers
_and_kb
)
/
sizeof
(
controllers
_and_kb
[
0
])
},
// port 2
{
controllers_and_kb
,
sizeof
(
controllers_and_kb
)
/
sizeof
(
controllers_and_kb
[
0
])
},
// port 3
{
NULL
,
0
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment