Skip to content

Commit

Permalink
Add if #available(tvOS 12.1, *) for L3/R3 check
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdestruct committed Feb 2, 2019
1 parent da778aa commit 67c7000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Provenance/Controller/GCControllerExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import GameController
extension GCController {

func supportsThumbstickButtons() -> Bool {
if #available(iOS 12.1, *) {
if #available(iOS 12.1, tvOS 12.1, *) {
let controller = self.extendedGamepad
return (controller!.responds(to: #selector(getter: GCExtendedGamepad .leftThumbstickButton))) && controller!.leftThumbstickButton != nil
} else {
Expand Down

0 comments on commit 67c7000

Please sign in to comment.