*

Welcome, Guest. Please login or register.

Get your own OLPC - Buy an XO laptop on eBay!
Pages: [1]
Print
Author Topic: Rotating the buttons when the screen is rotated?  (Read 4950 times)

Rotating the buttons when the screen is rotated?

intelliot
Contributor
*
Posts: 69


XoCal Enthusiast


WWW
December 22, 2007, 02:37:53 AM

One thing that initially really bugged me about using the OLPC as an eBook reader is the fact that no matter how the screen is oriented, the buttons are still doing the same thing. The arrows, at least, should really be rotated along with the screen. My sister's $1400 Lenovo Tablet PC does this - the directional pad rotates with the screen, so down is down, up is up (it also has an accelerometer so the screen rotates automatically, but I digress Smiley ).
Logged

#1 Re: Rotating the buttons when the screen is rotated?

Irish_Moss
Senior Contributor
**
Posts: 111


December 22, 2007, 11:45:47 AM

I agree that this would be a nice feature.  Maybe they'll implement it in a future update.
Although comparing it to a $1400 laptop really isn't fair.  This is a $187 laptop.
 
Logged

#2 Re: Rotating the buttons when the screen is rotated?

Ben James Ben
Senior Contributor
**
Posts: 142



December 22, 2007, 02:10:20 PM

I note that the code that handles the rotate screen function is in /usr/share/sugar/shell/view/keyhandler.py around line 193. I note that http://olpcnews.com/forum/index.php?topic=538.0 contains discussion about how to remap the keyboard. However, I'm not sure whether the directional pad and game pad buttons are handled through the same subsystem as the keyboard.

Anyway, it might be possible to modify keyhandler.py such that whenever the screen gets rotated, it calls an additional function to apply a different key mapping for the directional and game pads. Or, perhaps it could swap keycodes directly, making the laptop think that a different button has been pressed.
Logged

#3 Re: Rotating the buttons when the screen is rotated?

isforinsects
Contributor
*
Posts: 44


December 22, 2007, 07:14:26 PM

This is an open bug that is scheduled for update.2.

http://dev.laptop.org/ticket/5549

You are more than welcome to help patch/improve this issue of course.
Logged

#4 Re: Rotating the buttons when the screen is rotated?

ylsf
Contributor
*
Posts: 50


January 28, 2008, 09:06:29 PM

Looking forward to this feature.. Could be cool once fixed!
Logged
Pages: [1]
Print
Jump to:  

Members
Total Members: 2406
Latest: sembik
Stats
Total Posts: 31943
Total Topics: 3843
Online Today: 43
Online Ever: 238
(April 18, 2011, 09:48:50 PM)
Users Online
Users: 0
Guests: 19
Total: 19