mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-22 21:46:51 +02:00
This commit is contained in:
@@ -291,9 +291,15 @@ eq(edgeImp._pageScrollMax, 0, "with no page scroll left to catch the notch")
|
||||
check(ereg.y + ereg.h < 720, "and a region that ends above the safe area")
|
||||
edgeImp._padCursorActive = true
|
||||
edgeImp._padCursor = { x = ereg.x + 20, y = 719 }
|
||||
edgeImp._padAxis = { lefty = 1 }
|
||||
edgeImp._padDir = {}
|
||||
pointer(ereg.x + 20, 719)
|
||||
edgeImp:gamepadaxis(nil, "lefty", 1)
|
||||
edgeImp:_updatePadCursor(0.5)
|
||||
eq(edgeImp._wheelY or 0, 0,
|
||||
"an axis that has never read under the deadzone cannot edge-scroll")
|
||||
edgeImp._padCursor = { x = ereg.x + 20, y = 719 }
|
||||
edgeImp:gamepadaxis(nil, "lefty", 0)
|
||||
edgeImp:gamepadaxis(nil, "lefty", 1)
|
||||
edgeImp:_updatePadCursor(0.5)
|
||||
check((edgeImp._wheelY or 0) < 0, "the edge push synthesizes a notch")
|
||||
LauncherView.draw(edgeImp)
|
||||
|
||||
@@ -55,8 +55,12 @@ end
|
||||
|
||||
love.system.getOS = function() return "OS X" end
|
||||
T.eq(Orientation.apply("portrait"), false, "desktop apply is a refused no-op")
|
||||
-- iOS posed but no SDL loaded: the FFI path must fail closed, not claim the
|
||||
-- lock took.
|
||||
love.system.getOS = function() return "iOS" end
|
||||
T.eq(Orientation.apply("portrait"), false, "iOS defers to the Info.plist")
|
||||
T.eq(Orientation.apply("portrait"), false, "iOS apply fails closed with no SDL")
|
||||
local okIOS = pcall(Orientation.applyOptions, { orientation = "portrait" })
|
||||
T.eq(okIOS, true, "posed-iOS apply never raises")
|
||||
-- Android posed but no SDL loaded in this process: the FFI path must fail
|
||||
-- closed inside its pcall, never throw.
|
||||
love.system.getOS = function() return "Android" end
|
||||
|
||||
Reference in New Issue
Block a user