libretro.api.environment¶
Types for interfacing between a Core
and libretro.py’s driver implementations.
See also
EnvironmentDriverThe
Protocolthat defines the layer betweenCores and libretro.py’s drivers.libretro.drivers.environmentlibretro.py’s included
EnvironmentDriverimplementations.
Module Attributes
The version of the libretro API that this library implements. |
|
Dispatch an environment call from the core to the frontend. |
Classes
Enumeration of all |
- class EnvironmentCall[source]¶
Bases:
IntEnumEnumeration of all
RETRO_ENVIRONMENTcallback identifiers.Each member corresponds to a
RETRO_ENVIRONMENT_*constant inlibretro.h. Passed as thecmdargument toretro_environment_t().>>> from libretro.api import EnvironmentCall >>> EnvironmentCall.SHUTDOWN <EnvironmentCall.SHUTDOWN: 7>
- SET_ROTATION = 1¶
See also
- GET_OVERSCAN = 2¶
- GET_CAN_DUPE = 3¶
See also
- SET_MESSAGE = 6¶
See also
- SHUTDOWN = 7¶
- SET_PERFORMANCE_LEVEL = 8¶
- GET_SYSTEM_DIRECTORY = 9¶
See also
- SET_PIXEL_FORMAT = 10¶
See also
- SET_INPUT_DESCRIPTORS = 11¶
See also
- SET_KEYBOARD_CALLBACK = 12¶
See also
- SET_DISK_CONTROL_INTERFACE = 13¶
See also
- SET_HW_RENDER = 14¶
See also
- SET_HW_RENDER_EXPERIMENTAL = 65550¶
See also
- GET_VARIABLE = 15¶
See also
- SET_VARIABLES = 16¶
See also
- GET_VARIABLE_UPDATE = 17¶
See also
- SET_SUPPORT_NO_GAME = 18¶
- GET_LIBRETRO_PATH = 19¶
See also
- SET_FRAME_TIME_CALLBACK = 21¶
See also
- SET_AUDIO_CALLBACK = 22¶
See also
- GET_RUMBLE_INTERFACE = 23¶
See also
- GET_INPUT_DEVICE_CAPABILITIES = 24¶
See also
- GET_SENSOR_INTERFACE = 65561¶
See also
- GET_CAMERA_INTERFACE = 65562¶
See also
- GET_PERF_INTERFACE = 28¶
See also
- GET_LOCATION_INTERFACE = 29¶
See also
- GET_CORE_ASSETS_DIRECTORY = 30¶
See also
- GET_SAVE_DIRECTORY = 31¶
See also
- SET_SYSTEM_AV_INFO = 32¶
See also
- SET_PROC_ADDRESS_CALLBACK = 33¶
See also
- SET_SUBSYSTEM_INFO = 34¶
See also
- SET_CONTROLLER_INFO = 35¶
See also
- SET_MEMORY_MAPS = 65572¶
See also
- SET_GEOMETRY = 37¶
See also
- GET_USERNAME = 38¶
See also
- GET_LANGUAGE = 39¶
See also
- GET_CURRENT_SOFTWARE_FRAMEBUFFER = 65576¶
- GET_HW_RENDER_INTERFACE = 65577¶
See also
- SET_SUPPORT_ACHIEVEMENTS = 65578¶
- SET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE = 65579¶
- SET_SERIALIZATION_QUIRKS = 44¶
See also
- __new__(value)¶
- classmethod value in self¶
Return True if value is in cls.
value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)
- classmethod self[name]¶
Return the member matching name.
- __init__()¶
- classmethod iter(self)¶
Return members in definition order.
- classmethod len(self)¶
Return the number of members (no aliases)
- SET_HW_SHARED_CONTEXT = 65580¶
See also
- GET_VFS_INTERFACE = 65581¶
See also
- GET_AUDIO_VIDEO_ENABLE = 65583¶
See also
- GET_MIDI_INTERFACE = 65584¶
See also
- GET_FASTFORWARDING = 65585¶
See also
- GET_TARGET_REFRESH_RATE = 65586¶
See also
- GET_INPUT_BITMASKS = 65587¶
See also
- GET_CORE_OPTIONS_VERSION = 52¶
See also
- SET_CORE_OPTIONS = 53¶
See also
- SET_CORE_OPTIONS_INTL = 54¶
See also
- SET_CORE_OPTIONS_DISPLAY = 55¶
See also
- GET_PREFERRED_HW_RENDER = 56¶
See also
- GET_DISK_CONTROL_INTERFACE_VERSION = 57¶
- SET_DISK_CONTROL_EXT_INTERFACE = 58¶
- GET_MESSAGE_INTERFACE_VERSION = 59¶
See also
- SET_MESSAGE_EXT = 60¶
See also
- GET_INPUT_MAX_USERS = 61¶
See also
- SET_AUDIO_BUFFER_STATUS_CALLBACK = 62¶
See also
- SET_MINIMUM_AUDIO_LATENCY = 63¶
See also
- SET_FASTFORWARDING_OVERRIDE = 64¶
See also
- SET_CONTENT_INFO_OVERRIDE = 65¶
See also
- GET_GAME_INFO_EXT = 66¶
See also
- SET_CORE_OPTIONS_V2 = 67¶
See also
- SET_CORE_OPTIONS_V2_INTL = 68¶
See also
- SET_CORE_OPTIONS_UPDATE_DISPLAY_CALLBACK = 69¶
See also
- SET_VARIABLE = 70¶
See also
- GET_THROTTLE_STATE = 65607¶
See also
- GET_SAVESTATE_CONTEXT = 65608¶
See also
- GET_HW_RENDER_CONTEXT_NEGOTIATION_INTERFACE_SUPPORT = 65609¶
- GET_JIT_CAPABLE = 74¶
- GET_MICROPHONE_INTERFACE = 65611¶
See also
- SET_NETPACKET_INTERFACE = 76¶
- GET_DEVICE_POWER = 65613¶
See also
- GET_PLAYLIST_DIRECTORY = 79¶
See also
- GET_FILE_BROWSER_START_DIRECTORY = 80¶
See also
- retro_environment_t¶
Dispatch an environment call from the core to the frontend.
Registered by the frontend and called by the core to perform tasks that don’t have a dedicated entry point in libretro, such as querying frontend capabilities or registering structured data.
- Parameters:
cmd – One of the
EnvironmentCallconstants (possibly OR’d withRETRO_ENVIRONMENT_EXPERIMENTALorRETRO_ENVIRONMENT_PRIVATE).data – A
c_void_ptrto the environment-call-specific input or output buffer, orNoneif the call doesn’t take any data.
- Returns:
Trueif the environment call was recognized and (where applicable) succeeded,Falseif the frontend doesn’t recognizecmdor rejected the request.
Corresponds to
retro_environment_tinlibretro.h.
- API_VERSION = 1¶
The version of the libretro API that this library implements.