Enums

Details

class Retro.AnalogId(value)

Bases: GObject.GEnum

Represents the axes of the analog sticks for the Libretro gamepad.

X = 0

the X axis of an analog stick

Y = 1

the Y axis of an analog stick

COUNT = 2

the number of ids

class Retro.AnalogIndex(value)

Bases: GObject.GEnum

Represents the analog sticks for the Libretro gamepad.

LEFT = 0

the left analog stick

RIGHT = 1

the right analog stick

COUNT = 2

the number of indexes

class Retro.ControllerType(value)

Bases: GObject.GEnum

Represents the base types for Libretro controllers.

NONE = 0

no controller

JOYPAD = 1

a classic gamepad

MOUSE = 2

a simple mouse

TYPE_MASK = 255

a mask to get the super type of a derived one

KEYBOARD = 3

a keyboard

LIGHTGUN = 4

a lightgun

ANALOG = 5

a gamepad with analog sticks

POINTER = 6

a screen pointer

COUNT = 7

the number of types

class Retro.JoypadId(value)

Bases: GObject.GEnum

Represents the buttons for the Libretro gamepad. The available buttons are the same as the W3C Standard Gamepad, the SDL GameController and many other modern standard gamepads, but the name of the buttons may differ. See the

W3C Gamepad Specification and the SDL GamepadController definition for more information.

classmethod from_button_code(button_code)
Parameters:button_code (int) – a button code
Returns:the corresponding joypad id
Return type:Retro.JoypadId
classmethod to_button_code(joypad_id)
Parameters:joypad_id (Retro.JoypadId) – a Retro.JoypadId
Returns:the corresponding button code
Return type:int
B = 0

the bottom action button

Y = 1

the left action button

L = 10

the first left shoulder button

R = 11

the first right shoulder button

L2 = 12

the second left shoulder button

R2 = 13

the second right shoulder button

L3 = 14

the left thumb button

R3 = 15

the right thumb button

COUNT = 16

the number of ids

SELECT = 2

the Select button

START = 3

the Start button

UP = 4

the up directional button

DOWN = 5

the down directional button

LEFT = 6

the left directional button

RIGHT = 7

the right directional button

A = 8

the right action button

X = 9

the top action button

class Retro.LightgunId(value)

Bases: GObject.GEnum

Represents the inputs for the Libretro lightgun.

X = 0

the X axis of a lightgun

Y = 1

the Y axis of a lightgun

TRIGGER = 2

the trigger of a lightgun

CURSOR = 3

the cursor of a lightgun

TURBO = 4

the turbo button of a lightgun

PAUSE = 5

the pause button of a lightgun

START = 6

the start button of a lightgun

COUNT = 7

the number of ids

class Retro.MemoryType(value)

Bases: GLib.Enum

Represents the memory types for the Libretro core.

SAVE_RAM = 0

the save RAM

RTC = 1

the real time clock

SYSTEM_RAM = 2

the system RAM

VIDEO_RAM = 3

the video RAM

class Retro.MouseId(value)

Bases: GObject.GEnum

Represents the inputs for the Libretro mouse.

X = 0

the X axis of a mouse

Y = 1

the Y axis of a mouse

LEFT = 2

the left button of a mouse

RIGHT = 3

the right button of a mouse

WHEELUP = 4

the up direction of a mouse wheel

WHEELDOWN = 5

the down direction of a mouse wheel

MIDDLE = 6

the middle button of a mouse

HORIZ_WHEELUP = 7

the horizontal up direction of a mouse wheel

HORIZ_WHEELDOWN = 8

the horizontal down direction of a mouse wheel

COUNT = 9

the number of ids

class Retro.PointerId(value)

Bases: GObject.GEnum

Represents the inputs for the Libretro pointer.

X = 0

the X axis of a pointer

Y = 1

the Y axis of a pointer

PRESSED = 2

the pression of a pointer

COUNT = 3

the number of ids

class Retro.RumbleEffect(value)

Bases: GObject.GEnum

Represents the strength of the rumble effect.

STRONG = 0

the strong rumble effect

WEAK = 1

the weak rumble effect

COUNT = 2

the number of rumble effects

class Retro.VideoFilter(value)

Bases: GObject.GEnum

Represents the filters that can be applied to the video output.

classmethod from_string(filter)
Parameters:filter (str) – a filter name
Returns:a Retro.VideoFilter
Return type:Retro.VideoFilter

Gets a Retro.VideoFilter from it’s name. It defaults to Retro.VideoFilter.SMOOTH in case of error.

SMOOTH = 0

a smooth but blurry video filer

SHARP = 1

a sharp video filter showing every pixel

CRT = 2

a video filter mimicking CRT screens

COUNT = 3

the number of video filters