Opened 9 years ago

Last modified 22 months ago

#7831 new enhancement

WEBOS: Add autorotate of screen

Reported by: SF/rsjamilla Owned by: kayahr
Priority: normal Component: Port: WebOS
Keywords: Cc:


Please add autorotate for WebOS. I would prefer the game to play on the HP Touchpad with home button on the left. This is due to my case that tilts the screen with this orientation. Thanks. Otherwise the port is excellent. Really good work!

Ticket imported from: #3434102. Ticket imported from: feature-requests/647.

Change History (5)

comment:1 by digitall, 6 years ago

Summary: WebOS autorotateWEBOS: Add autorotate of screen

comment:2 by digitall, 6 years ago

Owner: set to kayahr

comment:3 by digitall, 6 years ago

Have looked at this. In WebOS native JS applications, this should be fairly simple i.e. change window.PalmSystem.setWindowOrientation('left'); to window.PalmSystem.setWindowOrientation('free'); thus allowing autorotation and a bit of work to deal with redrawing screen.

However, our WebOS port uses the SDL built on top of the PDL, which allows C/C++ code to be used. Unfortunately the PDL API seems to only support fixed orientations:

And even then the SDL v1.2.X library doesn't seem to support this hence:

Overall, this looks like it is not possible without some major work.

@Kayahr: Any POV on this? Close as later?

comment:4 by csnover, 3 years ago

Component: Ports

comment:5 by digitall, 22 months ago

Component: PortsPort: WebOS
Note: See TracTickets for help on using tickets.