maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   More hardware buttons for the next model (https://talk.maemo.org/showthread.php?t=34441)

kortsi 2009-11-14 13:24

Re: More hardware buttons for the next model
 
Quote:

Originally Posted by ragnar (Post 375890)
Try using the Ctrl+backspace shortcut from the HW keyboard to access the Dashboard. Very useful for instance in full screen mode browser.

Then again, I at least yesterday thought that "Next task" and "Previous task" would be very nice keyboard shortcuts.

Thanks! This saved my day (today at least).

But I still think it would be nice to get the camera button rewired. It even has two stages, half-way and full press.

Maybe something like this:

- One half-way press: go to dashboard
- Second half-way press: go back to the last application
- Full press: go to the desktop
- Open camera cover: go to camera app and go back to default shutter button behaviour

And of course they should be programmable. I could even give it a shot if I find some way of reprogramming the button...

lemmyslender 2009-11-14 13:34

Re: More hardware buttons for the next model
 
I would love to see the camera button be configuable. Different things for different people. I can certianly see the usefulness for dashboard/desktop. For instance, while browsing, I don't always need/want to have the keyboard out. Reading ebooks/pdf, etc is another case.

It'd be much easier to hit the camera button rather than slide out the keyboard, press a key combo, slide keyboard back in.

chrisp7 2009-11-14 13:44

Re: More hardware buttons for the next model
 
Ive said it many times before - touchscreen with D pad (say nseries D pad) on the bottom, and possibly 2 buttons at the top = perfect. dpad could be useful for certain functions plus rotated to landscape games would be amazing.

Lacedaemon 2009-11-14 13:46

Re: More hardware buttons for the next model
 
The idea for the camera button is fantastic. It would be great if someone could program it so it adds more functionality to it when the lens cover is closed.

hqh 2009-11-14 16:35

Re: More hardware buttons for the next model
 
I have managed to create a simple application (read: quick hack) to accomplish this.

Started from xterm, it grabs a key (which should be the camera key) and when that key is pressed in any application then the app signals via dbus for the dashboard to appear (doesn't seem to work on desktop or in app menu).

I don't have the actual device yet but it works in scratchbox. Currently the key is F10 (not sure which key the actual camera key maps to).

The keypress gets eaten by my app so no other application can receive it. The app is obviously not ready to be packaged just yet, but it should prove that this is possible :) I'll try to make this into a real application once I receive my device.

Is the lens protector mapped to a X11 keycode?

kortsi 2009-11-14 16:46

Re: More hardware buttons for the next model
 
Quote:

Originally Posted by hqh (Post 376136)
I have managed to create a simple application (read: quick hack) to accomplish this.

Started from xterm, it grabs a key (which should be the camera key) and when that key is pressed in any application then the app signals via dbus for the dashboard to appear (doesn't seem to work on desktop or in app menu).

I don't have the actual device yet but it works in scratchbox. Currently the key is F10 (not sure which key the actual camera key maps to).

The keypress gets eaten by my app so no other application can receive it. The app is obviously not ready to be packaged just yet, but it should prove that this is possible :)

Is the lens protector mapped to a X11 keycode?

Any idea how to check the keycodes on the tablet? There's no xev command by default.

hqh 2009-11-14 16:56

Re: More hardware buttons for the next model
 
Quote:

Originally Posted by kortsi (Post 376159)
Any idea how to check the keycodes on the tablet? There's no xev command by default.

Xev can be found from package x11-utils (on the SDK at least).
Edit: Armel version exists at http://repository.maemo.org/pool/fre...e/x/x11-utils/

Texrat 2009-11-14 17:03

Re: More hardware buttons for the next model
 
http://tabulacrypticum.wordpress.com...he-nokia-n900/

Gadgety 2009-11-14 17:08

Re: More hardware buttons for the next model
 
Quote:

Originally Posted by hqh (Post 376136)
I have managed to create a simple application (read: quick hack) to accomplish this.

Started from xterm, it grabs a key (which should be the camera key) and when that key is pressed in any application then the app signals via dbus for the dashboard to appear (doesn't seem to work on desktop or in app menu).

I don't have the actual device yet but it works in scratchbox. Currently the key is F10 (not sure which key the actual camera key maps to).

The keypress gets eaten by my app so no other application can receive it. The app is obviously not ready to be packaged just yet, but it should prove that this is possible :) I'll try to make this into a real application once I receive my device.

Is the lens protector mapped to a X11 keycode?

Awesome. And you don't even have the device yet! An app that reprograms buttons would certainly find a large market among those who want to tailor their devices.

thp 2009-11-14 17:13

Re: More hardware buttons for the next model
 
Quote:

Originally Posted by hqh (Post 376136)
Is the lens protector mapped to a X11 keycode?

It's accessible as button via Hal: /org/freedesktop/Hal/devices/platform_cam_shutter

The camera button is also exposed via Hal: /org/freedesktop/Hal/devices/platform_cam_focus (for pressing it just lightly) and /org/freedesktop/Hal/devices/platform_cam_launch (for pressing it normally). You can get the events via D-Bus on the system bus. HTH.


All times are GMT. The time now is 19:53.

vBulletin® Version 3.8.8