ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > Maemo Port > Nokia N900 keyboard input not working
Nokia N900 keyboard input not working
  Author    Thread Reply to topic
nerdknight



Joined: 25 Nov 2011
Posts: 3
 

Hi!, I've installed scummvm 1.4.0 on my n900. The keys are not responding. I've downloaded the source and ran a few tests and it seems it isn't getting any key events (only mouse events) when calling the method

code:

bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event)


in file backends/events/sdl/sdl-events.cpp
 Reply with quote  
Post Fri Nov 25, 2011 3:54 am 
 View user's profile Send private message MSN Messenger ICQ Number
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

I was afraid that would happen.
I'll try to fix it for 1.4.1.

 Reply with quote  
Post Fri Nov 25, 2011 4:37 am 
 View user's profile Send private message Send e-mail
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

Please log a bug with as much detail as possible (including what game(s) you were testing with)

Also, I put in a fix that will hopefully fix it in the latest (experimental) daily build. (The link is in the sticky post in this forum)

Let me know if it works (saves done with that 1.5.0~git build may not work in 1.4.0)
I don't have a N900 to reproduce/test this.

 Reply with quote  
Post Fri Nov 25, 2011 5:49 am 
 View user's profile Send private message Send e-mail
nerdknight



Joined: 25 Nov 2011
Posts: 3
 

The problem was no keyboard events at all, not even at the scummvm start menu, the last build you have posted solved the problem.
Another problem with the n900 are the keybindings, the n900 doesn't have menu key nor fullscreen key, so I cannot access the in game menu and toggle fullscreen. (I suggest Ctl+m and Ctl+f)
The bindings with the volume keys doesn't work quite well, the still control the system volume, but after a while (I don't know what I did) they worked.
I ran the tests with The Curse of Monkey Island.

 Reply with quote  
Post Fri Nov 25, 2011 8:53 pm 
 View user's profile Send private message MSN Messenger ICQ Number
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

Go ahead and log bug reports for these issues as per forum rule 3a.

Ctrl-m cannot be used because it is used for a built-in function.
The old Maemo port cheated to achieve this (it wasn't in the official repo and was sort of hacked in)

I think I will have to use the keymapper for these functions so that you can remap them instead of them being hardcoded and potentially getting in the way of a game that uses them.

Try to find out what you did for the volume keys to work.

 Reply with quote  
Post Fri Nov 25, 2011 9:58 pm 
 View user's profile Send private message Send e-mail
Smothermunchie



Joined: 30 Mar 2007
Posts: 96
 

Another way to go is to use Xmodmap, if it's available, and change the keys this way.

 Reply with quote  
Post Fri Nov 25, 2011 10:45 pm 
 View user's profile Send private message
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

If you type in f8 in the virtual keyboard you'll bring up the keymapper.
You can set the key for global main menu there. Try that in the daily build.
Caveat: it is very experimental.

 Reply with quote  
Post Fri Nov 25, 2011 10:55 pm 
 View user's profile Send private message Send e-mail
nerdknight



Joined: 25 Nov 2011
Posts: 3
 

I've submitted three bugs, one for the key events problem on the N900 in scummvm 1.4.0 (that one is corrected in daily build 1.5.0git812-gc451bd4-dirty), and the other with the zoom keys bindings. This one may be related to this:
http://maemo.org/community/maemo-developers/howto_grab_all_maemo5_zoom_key_events_in_sdl-sdl_gles_app/?org_openpsa_qbpager_net_nemein_discussion_posts_page=1#50222922577d11df807a8707c62511b011b0
I added a third one for the in-game menu key binding, I think this is important. The keymapper workaround works.

 Reply with quote  
Post Sat Nov 26, 2011 8:10 pm 
 View user's profile Send private message MSN Messenger ICQ Number
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

Thanks

 Reply with quote  
Post Sun Nov 27, 2011 3:10 am 
 View user's profile Send private message Send e-mail
zod



Joined: 04 Nov 2005
Posts: 10
 

quote:
Originally posted by tsoliman
If you type in f8 in the virtual keyboard you'll bring up the keymapper.

Which build support this? I have this version installed and F8 doesn't work or i just don't now how to use it.
Could proximity sensor be used for disabling mouse clicks? Eg. when proximity is covered then no clicks. Old method, holding down ctrl key, was also ok.
 Reply with quote  
Post Sat Dec 10, 2011 4:21 pm 
 View user's profile Send private message
tsoliman
ScummVM Developer


Joined: 19 Jan 2011
Posts: 348
Location: Waukesha, WI
 

The 1.5.0git development snapshots do. Look for the first thread in this forum (announcement)

EDIT: I was answering the part about the keymapper. I'll try to look into the proximity sensor.

 Reply with quote  
Post Sat Dec 10, 2011 4:54 pm 
 View user's profile Send private message Send e-mail
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge