GBA001/Delta/Emulation/ActionInput.swift
Riley Testut d70105e30e Adds ControllerInputsViewController to customize external game controller inputs
Includes necessary code changes to use refactored DeltaCore Input logic
2017-09-27 13:08:41 -07:00

29 lines
479 B
Swift

//
// ActionInput.swift
// Delta
//
// Created by Riley Testut on 8/28/17.
// Copyright © 2017 Riley Testut. All rights reserved.
//
import DeltaCore
public extension GameControllerInputType
{
static let action = GameControllerInputType("com.rileytestut.Delta.input.action")
}
enum ActionInput: String
{
case saveState
case loadState
case fastForward
}
extension ActionInput: Input
{
var type: InputType {
return .controller(.action)
}
}