libretro.drivers.message.driver¶
Protocol definition for the message driver interface.
See also
libretro.api.messageProvides the message types that
MessageDriverimplementations display or log.
Classes
Protocol for drivers that handle on-screen or logged messages sent by the core. |
- class MessageDriver[source]¶
Bases:
ProtocolProtocol for drivers that handle on-screen or logged messages sent by the core.
Cores deliver messages via
RETRO_ENVIRONMENT_SET_MESSAGEorRETRO_ENVIRONMENT_SET_MESSAGE_EXT.See also
libretro.api.messageThe message types delivered to implementations of this protocol.
- abstract property version¶
The message-interface version supported by this driver.
0supports onlyretro_message.1additionally supportsretro_message_ext.
- abstractmethod set_message(message)[source]¶
Delivers a message from the core.
Corresponds to the
RETRO_ENVIRONMENT_SET_MESSAGEandRETRO_ENVIRONMENT_SET_MESSAGE_EXTenvironment calls.- Parameters:
message (
retro_message|retro_message_ext|None) – The message to display or log, orNone.- Return type:
- Returns:
Trueif the message was accepted.
See also
retro_messageThe legacy message struct delivered via
RETRO_ENVIRONMENT_SET_MESSAGE.retro_message_extThe extended message struct delivered via
RETRO_ENVIRONMENT_SET_MESSAGE_EXT.
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶