Opened 8 years ago

Last modified 13 months ago

#7831 new enhancement

WEBOS: Add autorotate of screen

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

Description

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.

https://davebalmer.wordpress.com/2010/09/08/jo-and-webos-part-2-window-orientation-and-full-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:
https://developer.palm.com/content/api/reference/pdk/pdl/pdl-set-orientation.html

And even then the SDL v1.2.X library doesn't seem to support this hence:
https://developer.palm.com/distribution/viewtopic.php?f=70&t=6540

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

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

comment:4 by csnover, 2 years ago

Component: Ports

comment:5 by digitall, 13 months ago

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