Welcome, Guest. Please login or register.
March 11, 2010, 03:42:35 PM

Login with username, password and session length
Forum has been upgraded to SMF 1.1.4. Report any problems via PM to Troy.
37545 Posts in 4460 Topics by 2441 Members
Latest Member: pauljennings
Search:     Advanced search
+  OQO Talk
|-+  General
| |-+  Software (Moderators: sandydlc, stuartguthrie, Pappasan)
| | |-+  Automatic Screen Rotation demo (look out iPhone!)
« previous next »
Pages: [1] 2 3 ... 10 Print
Author Topic: Automatic Screen Rotation demo (look out iPhone!)  (Read 61087 times)
terran
Full Member
***
Posts: 130


View Profile
« on: June 29, 2007, 04:49:18 PM »

I've just written a demo app that automatically rotates your screen when turn the OQO, like the iPhone, etc.

You can adjust the amount of time to delay before rotating, and you can also change the threshold angle, so that gentle jostling does not make the screen rotate. You can even place it flat on a table and it won't rotate unexpectedly. You can also 'lock' the rotation so that the screen won't change, regardless of which way you hold it.

Here is the app. When you unzip the package, you should be able to place the oqoaccel.dll file in your 02's C:\Windows\system32 folder and never have to worry about that file again (unless an updated version comes out). By keeping it in system32, you won't need to include it in the same directory as the main program. That one file in system32 will take care of any and all accelerometer demos we make (Screen Rotation, Red Dot, BedTime, etc.).

Here is the source.

I plan on modifying the program too, so if you have any suggestions, I'll see what I can do to incorporate your feature requests. I know there are a few mentioned in Kenrick's demo app thread, so I will check there, too.

Thanks guys. I'll be around to update you as things progress. Let me know how it works for you!

Enjoy! Grin
« Last Edit: July 08, 2007, 06:28:25 PM by terran » Logged

02 Best / XP Tablet / WWAN-less
wrecks
Full Member
***
Posts: 133


View Profile
« Reply #1 on: June 29, 2007, 05:11:53 PM »

Best homebrew app for the OQO ever.  Stuck a shortcut of the .exe in my startup.

Thanks for all the participants efforts in creating and maintaining these apps.
Logged
GuardianZX9
Newbie
*
Posts: 49


View Profile
« Reply #2 on: June 29, 2007, 05:51:16 PM »

this is way cool, only see one bug, when you auto rotate it doesnt change the track stick orientation.

If I rotate with FN-Rotate the track stick rotates too.

The digitizer seems ok and tracks fine.


thanks for such a cool app, the 02 still kicks the iphones bootie Smiley

G
Logged
wrecks
Full Member
***
Posts: 133


View Profile
« Reply #3 on: June 29, 2007, 05:54:40 PM »

good catch.  the track point or mouse stick does not orientate correctly.  Did not notice that, because I was using my pen.
Logged
terran
Full Member
***
Posts: 130


View Profile
« Reply #4 on: June 29, 2007, 05:59:07 PM »

Thanks "early adopters!" hehe.

I'll take a look at that. I hadn't even thought about that possibility! Undecided
Logged

02 Best / XP Tablet / WWAN-less
drbf
Newbie
*
Posts: 30


View Profile
« Reply #5 on: June 29, 2007, 06:16:29 PM »

Great little program, thanks
oqo 2 Vista Best
Logged
Kenrick
Sr. Member
****
Posts: 442


View Profile WWW
« Reply #6 on: June 29, 2007, 08:10:54 PM »

Nice job with the auto-rotate, it works very well!

I didn't even know the mouse inverts when using the OQO Fn-Rotate.
You might need to get help from OQO on that, I think it has to be done at the mouse driver level.
Logged

OQO 02 still running since 4/2007, Sony Vaio P
http://www.math.uaa.alaska.edu/~afkjm/techteach/?q=taxonomy/term/9
terran
Full Member
***
Posts: 130


View Profile
« Reply #7 on: June 29, 2007, 08:13:34 PM »

Nice job with the auto-rotate, it works very well!

I didn't even know the mouse inverts when using the OQO Fn-Rotate.
You might need to get help from OQO on that, I think it has to be done at the mouse driver level.

Thanks!

Yeah, I had never noticed, either, since I'm always using the pen. Wink

I was thinking the same thing. I just shot Brandon an email.


btw, I really didn't like coding on my desktop, then copying the app over the network to the 02 just to run it. Besides, I couldn't debug it, either...so I caved in and put Visual Studio on the 02. Runs great! Though, coding on the 02 isn't the most easy thing in the world. Needless to say, I'm in the market for an external keyboard. So anyone who has something to say, feel free to hop over to this thread to add your input. I'd appreciate it!
« Last Edit: June 29, 2007, 08:44:19 PM by terran » Logged

02 Best / XP Tablet / WWAN-less
saniko
Guest
« Reply #8 on: June 29, 2007, 10:14:57 PM »

Do you have to setup cleartype for the screen rotation?  I know there is a program that automatically sets it up for each orientation.
Logged
terran
Full Member
***
Posts: 130


View Profile
« Reply #9 on: June 29, 2007, 10:20:08 PM »

Hmm...yet another thing I hadn't thought of. I certainly didn't do anything with ClearType for this app, so I don't know how that all works. If something needs integrated into my app, I'll give it a look.
Logged

02 Best / XP Tablet / WWAN-less
wrecks
Full Member
***
Posts: 133


View Profile
« Reply #10 on: June 30, 2007, 05:15:57 AM »

Looking forward for the mouse fix.. That's all I need with this app, and it will be perfect for me.

Oh, can you set it to hide by default.  I have it to autoload, but do not want to see the black screen upon boot up.
Logged
saniko
Guest
« Reply #11 on: June 30, 2007, 05:52:16 AM »

Cleartype settings for each rotation are important.  Are you not noticing a lack of sharpness with any rotation outside of primary landscape?

This link leads to a program that automatically handles this issue.  However, it doesn't sound like any of you have this problem like I do on my OQO, although we all should.
http://www.gottabemobile.com/NewRotationUtilitiesAvailable.aspx
Logged
Tekara
Sr. Member
****
Posts: 479

~Desu


View Profile
« Reply #12 on: June 30, 2007, 10:08:31 AM »

Cleartype settings for each rotation are important.  Are you not noticing a lack of sharpness with any rotation outside of primary landscape?

This link leads to a program that automatically handles this issue.  However, it doesn't sound like any of you have this problem like I do on my OQO, although we all should.
http://www.gottabemobile.com/NewRotationUtilitiesAvailable.aspx

Are you using an interpolated resolution?
Logged

UX390N | OQO02 1.5ghz
"The danger from computers is not that they will eventually be as smart as man but that we will agree to meet them half-way"
"Computers are a lot like air conditioners - they both work great until you open windows."

http://oqoasis.com
saniko
Guest
« Reply #13 on: June 30, 2007, 10:21:40 AM »

nope.  are you noticing a lack of sharpness on the rotated screens?
Logged
t1k
Full Member
***
Posts: 214


View Profile
« Reply #14 on: June 30, 2007, 10:36:31 PM »

Woo-hoo! I can't stop grinning & laughing! I'm sorry if I'm just easily amused over geek stuff, but the iPhone screen rotator and how it's implemented is one of the most sexy & elegant things about the iPhone (guess where I was yesterday), and it looks like you've succeeded in bringing that to the 02. Way too cool, terran! I changed the Desktop Background settings to Zoom mode so the aspect ratio stays the same & the picture fills the screen (no borders) even though it clips the sides off a wide-pic in portrait mode. And yeah, if you & Brandon can get the rodent rotated, it's a keeper. (BTW, your default settings were flawless) The real head-turner will be when I hold them both up and rotate them at the same time. Nice job coder!
Logged

               
[OQO] 02 Best     [OQO] 01+
Vista Ulti-gasm      XP Prada
WWAN VZW       BT tether VZW
Pages: [1] 2 3 ... 10 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Design by 7dana.com

OQO is a registered trademark of OQO, Inc. of San Francisco, CA