mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-08 10:07:25 +00:00
23 lines
547 B
Objective-C
23 lines
547 B
Objective-C
//
|
|
// CSJoystickMachine.h
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 03/10/2016.
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
typedef NS_ENUM(NSInteger, CSJoystickDirection)
|
|
{
|
|
CSJoystickDirectionUp,
|
|
CSJoystickDirectionDown,
|
|
CSJoystickDirectionLeft,
|
|
CSJoystickDirectionRight
|
|
};
|
|
|
|
@protocol CSJoystickMachine <NSObject>
|
|
|
|
- (void)setButtonAtIndex:(NSUInteger)button onPad:(NSUInteger)pad isPressed:(BOOL)isPressed;
|
|
- (void)setDirection:(CSJoystickDirection)direction onPad:(NSUInteger)pad isPressed:(BOOL)isPressed;
|
|
|
|
@end
|