30 lines
506 B
Swift
30 lines
506 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 quickSave
|
|
case quickLoad
|
|
case fastForward
|
|
case toggleFastForward
|
|
}
|
|
|
|
extension ActionInput: Input
|
|
{
|
|
var type: InputType {
|
|
return .controller(.action)
|
|
}
|
|
}
|