Sha256: b3837c35089fb02c001ea432dee18beccfdb130bc7b7e0ca8350f588d9c9270b
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 Bytes
Contents
module Joybox module Common module Device module_function def self.retina? false end def self.scale_factor 1 end def self.os_version major = Pointer.new(:int) Gestalt(GestaltSystemVersionMajor, major) minor = Pointer.new(:int) Gestalt(GestaltSystemVersionMinor, minor) bug_fix = Pointer.new(:int) Gestalt(GestaltSystemVersionBugFix, bug_fix) "#{major[0]}.#{minor[0]}.#{bug_fix[0]}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox-osx/common/device.rb |
joybox-1.1.0 | motion/joybox-osx/common/device.rb |