Skip to content

Instantly share code, notes, and snippets.

@azrsjp
Created May 29, 2017 15:50
Show Gist options
  • Save azrsjp/968d9e888b80d2d44015a46d0636c539 to your computer and use it in GitHub Desktop.
Save azrsjp/968d9e888b80d2d44015a46d0636c539 to your computer and use it in GitHub Desktop.
import Foundation
import SpriteKit
class Controller<M: Model, V: View> {
let model: M
let view: V
init(model: M, view: V) {
self.model = model
self.view = view
}
func initialize() {}
func keyDown(with event: NSEvent) -> Bool {
return false
}
func mouseDown(with event: NSEvent) -> Bool {
return false
}
func rightMouseDown(with event: NSEvent) -> Bool {
return false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment