Interface

HsPlayStationCore

Description [src]

interface Hs.PlayStationCore : Hs.Core

An interface for PlayStation cores.

Defines functions specific to PlayStation.

Available firmware IDs: HsPlayStationFirmware.

Prerequisite

In order to implement PlayStationCore, your type must inherit fromHsCore.

Instance methods

hs_playstation_core_emit_dualshock_mode_changed

Notifies frontend when DualShock mode changes for player.

hs_playstation_core_get_dualshock_mode

Gets the mode DualShock is using for player.

hs_playstation_core_get_players

Gets the number of players in the current game.

hs_playstation_core_set_dualshock_mode

Sets the mode DualShock is using for player.

Signals

Hs.PlayStationCore::dualshock-mode-changed

Emitted when DualShock mode changes for player.

Interface structure

struct HsPlayStationCoreInterface {
  GTypeInterface parent;
  guint (* get_players) (
    HsPlayStationCore* self
  );
  HsPlayStationDualShockMode (* get_dualshock_mode) (
    HsPlayStationCore* self,
    guint player
  );
  gboolean (* set_dualshock_mode) (
    HsPlayStationCore* self,
    guint player,
    HsPlayStationDualShockMode mode
  );
  
}

No description available.

Interface members
parent
GTypeInterface
 

No description available.

get_players
guint (* get_players) (
    HsPlayStationCore* self
  )
 

No description available.

get_dualshock_mode
HsPlayStationDualShockMode (* get_dualshock_mode) (
    HsPlayStationCore* self,
    guint player
  )
 

No description available.

set_dualshock_mode
gboolean (* set_dualshock_mode) (
    HsPlayStationCore* self,
    guint player,
    HsPlayStationDualShockMode mode
  )
 

No description available.

Virtual methods

Hs.PlayStationCore.get_dualshock_mode

Gets the mode DualShock is using for player.

Hs.PlayStationCore.get_players

Gets the number of players in the current game.

Hs.PlayStationCore.set_dualshock_mode

Sets the mode DualShock is using for player.