BbiKkuMi / adosbox

Automatically exported from code.google.com/p/adosbox
0 stars 0 forks source link

Function key/symbols on HTC Desire Z #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Press the Fn (function) key on the phone's hardware-keyboard
2.
3.

What is the expected output? What do you see instead?
The Fn (Function) key on the phone's hardware-keyboard is used for typing in 
special characters (e.g. *()/ etc. etc.) but they do not work

What version of the product are you using? On what operating system?
HTC Desire Z on Android 2.3.3

Please provide any additional information below.

Original issue reported on code.google.com by molot...@yahoo.co.uk on 23 Apr 2011 at 11:38

GoogleCodeExporter commented 9 years ago
This is on aDosBox 0.2 Beta

Original comment by molot...@yahoo.co.uk on 23 Apr 2011 at 11:38

GoogleCodeExporter commented 9 years ago
Just try the latest v0.2.1 beta in the "Downloads" section, I may have fixed 
those key mapping bugs.
Let me know if the problem still exists.

Original comment by grea...@gmail.com on 24 Apr 2011 at 7:23

GoogleCodeExporter commented 9 years ago
Have got 0.2.1 but the Fn keys still don't work. Nothing happens if you try to 
press them.

Original comment by molot...@yahoo.co.uk on 24 Apr 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Hello I have a droid 2, I´m currently running statistics DOS application (It 
runs very well), but I can't put numbers because the ALT key doesn't, do you 
have any fix for this?

Original comment by marcos.r...@gmail.com on 27 Apr 2011 at 3:48

GoogleCodeExporter commented 9 years ago
I need someone to tell me what keycodes are generating when you guys press 
Alt+? to input number 1-9

Original comment by grea...@gmail.com on 9 May 2011 at 8:13

GoogleCodeExporter commented 9 years ago
Hi, 
I'd love to help you check those codes but I'm not sure how to?

Original comment by Andreas....@gmail.com on 16 May 2011 at 5:05

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/adosbox/downloads/detail?name=KeyCodeRecorder.apk

Download and install this tiny test app, press whatever keys that are not 
working properly in 
aDosBox and then paste the outputs here.
Don't forget to let us know which outputs belong to which keys 

Original comment by grea...@gmail.com on 16 May 2011 at 6:53

GoogleCodeExporter commented 9 years ago
Hi,
I need to use the F6 key in dosbox, and I want to map the search button on my 
phone (Milestone) to F6, so how can I do it?
PS: when I press the search button in keycode recorder, I got
"KeyEvent{action=0 code=84 repeat=0 meta=0 scancode=217 mFlags=8}"

Original comment by MTKJag...@gmail.com on 2 Jun 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Menu->SDL settings->On-Screen Keyboard->Remap on-screen controls
Check On-screen button 5 then press ok
Use the default settings of the first 4 buttons and set the button 5 to be F6
Then press OK -> OK

you will see an extra button on the screen which is mapped to F6.

Currently you cannot map "search key" to F6.

Original comment by huangtao...@gmail.com on 2 Jun 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Thanks, it works. So now I can run Turbo C 2.0 on my android device and write 
some C programs.

Original comment by MTKJag...@gmail.com on 4 Jun 2011 at 4:55

GoogleCodeExporter commented 9 years ago
Droid 1 - running a rooted image from about a year ago (no issues = no update)

Pressing the left alt key gives:
KeyEvent{action=0  code=57 repeat=0 meta=18 scancode=56 mFlags=8}
it begins repeating rapidly (repeat= counts up) with the only other difference 
that the first repeat has an mFlags=136 (all the rest go back to 8)
When the key is released it says the same except action=1 and meta=0

Pressing and releasing (action=0, action=1) the K key is code 39, scancode 37

Doing that with left alt down shows the same, except meta is 18

Right Alt is meta 34

Left shift is meta 59

Right Shift is meta 129

These seem additive (example right alt+ right shift = meta 163).

Probably this means if I wanted to enter lalt+lshift+K I could do it, but 
entering an asterisk (normally alt+K on this keyboard) is only possible through 
the onscreen keyboard.

Since the meta codes are different, and some folks might want to use alt+P, 
alt+C, etc, I think the ideal solution would be for the input menu to allow you 
to set the two shift and alt keys as you like (l-shift, r-shift, l-alt, r-alt, 
l-ctrl, r-ctrl, or map-to-keyboard-symbols).  It seems weird that the program 
does not get * when I hit alt+K on my physical keyboard... android apps 
shouldn't have to all know the map for all the different physical keyboards out 
there.

Can you use the keybard "raw" like you do most of the time, and only grab the 
appropriate symbols when the right alt is pressed, without having to code in 
all the keyboard symbol maps?

Other weird keys:
search button on the keyboard (code=84 and scancode=217)
menu button on the keyboard (code=82 and scancode=139)

Original comment by shawndr...@gmail.com on 20 Jun 2011 at 9:10

GoogleCodeExporter commented 9 years ago
hello, i've downloaded adosbox yesterday (0.2.5)
and I noticed that fn key still doesn't work on HTC Desire Z (2.3.3 - 
CyanogenMod 7).
can this bug be fixed? if you want, i can send you keycodes
thanks

Original comment by hadi...@gmail.com on 20 Jul 2011 at 1:17

GoogleCodeExporter commented 9 years ago
OK, scancodes from the G2, presumably dz is the same.

Here's numbers 1 through 0, in order, using the right alt key, releasing alt 
between numbers:
1
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=45 repeat=0 meta=34 scancode=16 mFlags=8}
1KeyEvent{action=1 code=45 repeat=0 meta=34 scancode=16 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
2
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=51 repeat=0 meta=34 scancode=17 mFlags=8}
2KeyEvent{action=1 code=51 repeat=0 meta=34 scancode=17 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
3
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=33 repeat=0 meta=34 scancode=18 mFlags=8}
3KeyEvent{action=1 code=33 repeat=0 meta=34 scancode=18 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
4
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=46 repeat=0 meta=34 scancode=19 mFlags=8}
4KeyEvent{action=1 code=46 repeat=0 meta=34 scancode=19 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
5
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=48 repeat=0 meta=34 scancode=20 mFlags=8}
5KeyEvent{action=1 code=48 repeat=0 meta=34 scancode=20 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
6
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=53 repeat=0 meta=34 scancode=21 mFlags=8}
6KeyEvent{action=1 code=53 repeat=0 meta=34 scancode=21 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
7
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=49 repeat=0 meta=34 scancode=22 mFlags=8}
7KeyEvent{action=1 code=49 repeat=0 meta=34 scancode=22 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
8
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=37 repeat=0 meta=34 scancode=23 mFlags=8}
8KeyEvent{action=1 code=37 repeat=0 meta=34 scancode=23 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
9
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=43 repeat=0 meta=34 scancode=24 mFlags=8}
9KeyEvent{action=1 code=43 repeat=0 meta=34 scancode=24 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
0
 KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=44 repeat=0 meta=34 scancode=25 mFlags=8}
0KeyEvent{action=1 code=44 repeat=0 meta=34 scancode=25 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}

For reference, the left alt key is:

 KeyEvent{action=0 code=57 repeat=0 meta=18 scancode=56 mFlags=8}
KeyEvent{action=1 code=57 repeat=0 meta=0 scancode=56 mFlags=8}

I'll post again later with the special characters, as they don't work either.  
If necessary, I can list the entire keyboard.

Original comment by dmheit...@gmail.com on 5 Oct 2011 at 1:08

GoogleCodeExporter commented 9 years ago
First row of special characters for the g2:

!
 KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=29 repeat=0 meta=34 scancode=30 mFlags=8}
!KeyEvent{action=1 code=29 repeat=0 meta=34 scancode=30 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
#
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=47 repeat=0 meta=34 scancode=31 mFlags=8}
#KeyEvent{action=1 code=47 repeat=0 meta=34 scancode=31 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
$
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=32 repeat=0 meta=34 scancode=32 mFlags=8}
$KeyEvent{action=1 code=32 repeat=0 meta=34 scancode=32 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
%
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=34 repeat=0 meta=34 scancode=33 mFlags=8}
%KeyEvent{action=1 code=34 repeat=0 meta=34 scancode=33 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
&
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=35 repeat=0 meta=34 scancode=34 mFlags=8}
&KeyEvent{action=1 code=35 repeat=0 meta=34 scancode=34 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
*
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=36 repeat=0 meta=34 scancode=35 mFlags=8}
*KeyEvent{action=1 code=36 repeat=0 meta=34 scancode=35 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
(
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=38 repeat=0 meta=34 scancode=36 mFlags=8}
(KeyEvent{action=1 code=38 repeat=0 meta=34 scancode=36 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
)
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=39 repeat=0 meta=34 scancode=37 mFlags=8}
)KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
KeyEvent{action=1 code=39 repeat=0 meta=0 scancode=37 mFlags=8}
/
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=40 repeat=0 meta=34 scancode=38 mFlags=8}
/KeyEvent{action=1 code=40 repeat=0 meta=34 scancode=38 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}

As before, all characters entered using right alt.

Original comment by dmheit...@gmail.com on 5 Oct 2011 at 3:27

GoogleCodeExporter commented 9 years ago
Last row of special characters:

€
 KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=52 repeat=0 meta=34 scancode=45 mFlags=8}
€KeyEvent{action=1 code=52 repeat=0 meta=34 scancode=45 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
_
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=31 repeat=0 meta=34 scancode=46 mFlags=8}
_KeyEvent{action=1 code=31 repeat=0 meta=34 scancode=46 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
-
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=50 repeat=0 meta=34 scancode=47 mFlags=8}
-KeyEvent{action=1 code=50 repeat=0 meta=34 scancode=47 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
+
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=30 repeat=0 meta=34 scancode=48 mFlags=8}
+KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
KeyEvent{action=1 code=30 repeat=0 meta=0 scancode=48 mFlags=8}
=
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=42 repeat=0 meta=34 scancode=49 mFlags=8}
=KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
KeyEvent{action=1 code=42 repeat=0 meta=0 scancode=49 mFlags=8}
'
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=41 repeat=0 meta=34 scancode=50 mFlags=8}
'KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
KeyEvent{action=1 code=41 repeat=0 meta=0 scancode=50 mFlags=8}
"
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=105 repeat=0 meta=34 scancode=214 mFlags=8}
"KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
KeyEvent{action=1 code=105 repeat=0 meta=0 scancode=214 mFlags=8}
;
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=55 repeat=0 meta=34 scancode=51 mFlags=8}
;KeyEvent{action=1 code=55 repeat=0 meta=34 scancode=51 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
:
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=56 repeat=0 meta=34 scancode=52 mFlags=8}
:KeyEvent{action=1 code=56 repeat=0 meta=34 scancode=52 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}
~
KeyEvent{action=0 code=58 repeat=0 meta=34 scancode=100 mFlags=8}
KeyEvent{action=0 code=77 repeat=0 meta=34 scancode=215 mFlags=8}
~KeyEvent{action=1 code=77 repeat=0 meta=34 scancode=215 mFlags=8}
KeyEvent{action=1 code=58 repeat=0 meta=0 scancode=100 mFlags=8}

So, that's every special character on the g2 keyboard.  Basically, it seems alt 
doesn't work. Shift works, gives a capital as expected, but alt doesn't produce 
special characters.  Note I do have a slightly modified keymap for my g2. 
However, none of the keys I've listed have been modified, and the hardware 
still produces the same scancodes.

Original comment by dmheit...@gmail.com on 5 Oct 2011 at 3:37

GoogleCodeExporter commented 9 years ago
Anything new in this mater? Is anyone going to solve this?

Original comment by pawe...@gmail.com on 27 Feb 2012 at 11:38