Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
0aa6ed48
Verified
Commit
0aa6ed48
authored
1 year ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
chore: better unsafe and const management
parent
762debc5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!29
Support for Libretro
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontends/libretro/src/consts.rs
+30
-0
30 additions, 0 deletions
frontends/libretro/src/consts.rs
with
30 additions
and
0 deletions
frontends/libretro/src/consts.rs
0 → 100644
+
30
−
0
View file @
0aa6ed48
pub
const
RETRO_API_VERSION
:
u32
=
1
;
pub
const
REGION_NTSC
:
u32
=
0
;
pub
const
RETRO_ENVIRONMENT_SET_PIXEL_FORMAT
:
u32
=
10
;
pub
const
RETRO_PIXEL_FORMAT_0RGB1555
:
usize
=
0
;
pub
const
RETRO_PIXEL_FORMAT_XRGB8888
:
usize
=
1
;
pub
const
RETRO_PIXEL_FORMAT_RGB565
:
usize
=
2
;
pub
const
RETRO_MEMORY_SAVE_RAM
:
u32
=
0
;
pub
const
RETRO_MEMORY_SYSTEM_RAM
:
u32
=
0
;
pub
const
RETRO_DEVICE_JOYPAD
:
usize
=
1
;
pub
const
RETRO_DEVICE_ID_JOYPAD_B
:
isize
=
0
;
pub
const
RETRO_DEVICE_ID_JOYPAD_Y
:
isize
=
1
;
pub
const
RETRO_DEVICE_ID_JOYPAD_SELECT
:
isize
=
2
;
pub
const
RETRO_DEVICE_ID_JOYPAD_START
:
isize
=
3
;
pub
const
RETRO_DEVICE_ID_JOYPAD_UP
:
isize
=
4
;
pub
const
RETRO_DEVICE_ID_JOYPAD_DOWN
:
isize
=
5
;
pub
const
RETRO_DEVICE_ID_JOYPAD_LEFT
:
isize
=
6
;
pub
const
RETRO_DEVICE_ID_JOYPAD_RIGHT
:
isize
=
7
;
pub
const
RETRO_DEVICE_ID_JOYPAD_A
:
isize
=
8
;
pub
const
RETRO_DEVICE_ID_JOYPAD_X
:
isize
=
9
;
pub
const
RETRO_DEVICE_ID_JOYPAD_L
:
isize
=
10
;
pub
const
RETRO_DEVICE_ID_JOYPAD_R
:
isize
=
11
;
pub
const
RETRO_DEVICE_ID_JOYPAD_L2
:
isize
=
12
;
pub
const
RETRO_DEVICE_ID_JOYPAD_R2
:
isize
=
13
;
pub
const
RETRO_DEVICE_ID_JOYPAD_L3
:
isize
=
14
;
pub
const
RETRO_DEVICE_ID_JOYPAD_R3
:
isize
=
15
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment