Struct

HsInputState

Description [src]

union HsInputState {
  HsAtari2600InputState atari_2600;
  HsAtari7800InputState atari_7800;
  HsAtariLynxInputState atari_lynx;
  HsGameBoyInputState game_boy;
  HsGameBoyAdvanceInputState game_boy_advance;
  HsGameGearInputState game_gear;
  HsMasterSystemInputState master_system;
  HsMegaDriveInputState mega_drive;
  HsNeoGeoPocketInputState neo_geo_pocket;
  HsNesInputState nes;
  HsNintendo64InputState nintendo_64;
  HsNintendoDsInputState nintendo_ds;
  HsPcEngineInputState pc_engine;
  HsPlayStationInputState psx;
  HsSegaSaturnInputState saturn;
  HsSg1000InputState sg1000;
  HsSuperNesInputState super_nes;
  HsVirtualBoyInputState virtual_boy;
  HsWonderSwanInputState wonderswan;
}

A union of input states from the different platforms.

Cores should access it from Hs.CoreClass.poll_input, only for their current platform. *

Note

Add-on platforms do not have their own input state and reuse the one from their base platform.

Structure members
atari_2600: HsAtari2600InputState

Input state for HS_PLATFORM_ATARI_2600.

atari_7800: HsAtari7800InputState

Input state for HS_PLATFORM_ATARI_7800.

atari_lynx: HsAtariLynxInputState

Input state for HS_PLATFORM_ATARI_LYNX.

game_boy: HsGameBoyInputState

Input state for HS_PLATFORM_GAME_BOY.

game_boy_advance: HsGameBoyAdvanceInputState

Input state for HS_PLATFORM_GAME_BOY_ADVANCE.

game_gear: HsGameGearInputState

Input state for HS_PLATFORM_GAME_GEAR.

master_system: HsMasterSystemInputState

Input state for HS_PLATFORM_MASTER_SYSTEM.

mega_drive: HsMegaDriveInputState

Input state for HS_PLATFORM_MEGA_DRIVE.

neo_geo_pocket: HsNeoGeoPocketInputState

Input state for HS_PLATFORM_NEO_GEO_POCKET.

nes: HsNesInputState

Input state for HS_PLATFORM_NES.

nintendo_64: HsNintendo64InputState

Input state for HS_PLATFORM_NINTENDO_64.

nintendo_ds: HsNintendoDsInputState

Input state for HS_PLATFORM_NINTENDO_DS.

pc_engine: HsPcEngineInputState

Input state for HS_PLATFORM_PC_ENGINE.

psx: HsPlayStationInputState

Input state for HS_PLATFORM_PLAYSTATION.

saturn: HsSegaSaturnInputState

Input state for HS_PLATFORM_SEGA_SATURN.

sg1000: HsSg1000InputState

Input state for HS_PLATFORM_SG1000.

super_nes: HsSuperNesInputState

Input state for HS_PLATFORM_SUPER_NES.

virtual_boy: HsVirtualBoyInputState

Input state for HS_PLATFORM_VIRTUAL_BOY.

wonderswan: HsWonderSwanInputState

Input state for HS_PLATFORM_WONDERSWAN.