cask "enjoyable" do
  version "1.2"
  sha256 "f455b951ba8cf7c8426756ea6479e2232442508d8190d7ec2675266bf7ff14f6"

  url "https://yukkurigames.com/enjoyable/Enjoyable-#{version}.zip"
  name "Enjoyable"
  desc "Use your gamepad or joystick like a mouse and keyboard"
  homepage "https://yukkurigames.com/enjoyable/"

  deprecate! date: "2025-03-31", because: :unmaintained
  disable! date: "2026-04-01", because: :unmaintained

  depends_on :macos

  app "Enjoyable.app"

  zap trash: "~/Library/Preferences/com.yukkurigames.Enjoyable.plist"

  caveats do
    requires_rosetta
  end
end
