Author Topic: How To Assign Rotation To A Physical Button?  (Read 2025 times)

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Assign Rotation To A Physical Button?
« on: August 23, 2005, 11:14:24 pm »
Hi all,

How to assign Rotation to a physical button? Thx!
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
How To Assign Rotation To A Physical Button?
« Reply #1 on: August 24, 2005, 05:39:47 am »
There's a QCOP call to perform rotation iirc; I presume that you can assign this call (look on the trolltech site in their docs to see its exact form) to one of the hardware keys using the applet on the Settings page,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
How To Assign Rotation To A Physical Button?
« Reply #2 on: August 24, 2005, 08:23:10 am »
Thx for the reply! I'll see what I can find on trolltech. btw, I'm trying to do this for opie/oz ... yes?
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
How To Assign Rotation To A Physical Button?
« Reply #3 on: August 24, 2005, 08:45:52 am »
Yes that's right, otherwise it would be some other method (not a QCOP call).

If you get stuck, take a look at the source for libopie2 (iirc) and the ODevice definition - it shows how to perform rotation (you can find webcvs of the Opie source on www.handhelds.org).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva