Support and General Use > User Interface and Voice

morse code

<< < (2/8) > >>

scorche:
hmph...sure showed me  :)

Bascule: I know I know....

Mmmm:
To add morse input to the virtual keyboard for Ipods all you need to do is add this


--- Code: ---    { ACTION_KBD_MORSE_INPUT,  BUTTON_ON|BUTTON_MODE,                 BUTTON_NONE },
    { ACTION_KBD_MORSE_SELECT, BUTTON_SELECT|BUTTON_REL,              BUTTON_NONE },

--- End code ---

with a small modification (There don't seem to be any key combinations in the Ipod keymap which probably means that you cant have them...), Try replacing BUTTON_ON|BUTTON_MODE with BUTTON_PLAY

Add this to the end of the keyboard context in apps/keymaps/ipod.c (line 165 should do it).
Then pressing the play button should cycle you into and out of morse mode.

I don't know anything about Ipods and their buttons though, I have no idea if play is a good button for this or not. I chose it because it seems to be the only unused button in the Vkeyboard.

Try it out and tell us if it works....

alfred:
hmmm, it does not work on my ipod. if i change the lines according to your suggestions, compile and enter the text editor, a short press on play opens the virt keyboard, a longer press exits the editor and a very long press shuts down rockbox...

thank you, nevertheless, i learned a lot about compiling (which i had never done before...)

alfred

Mmmm:

--- Quote from: alfred on December 03, 2006, 01:09:34 PM ---hmmm, it does not work on my ipod. if i change the lines according to your suggestions, compile and enter the text editor, a short press on play opens the virt keyboard, a longer press exits the editor and a very long press shuts down rockbox...

thank you, nevertheless, i learned a lot about compiling (which i had never done before...)

alfred

--- End quote ---
Don't give up yet... What do you mean by "enter the text editor, a short press on play opens the virt keyboard, a longer press exits the editor"
I thought you were already in the editor...

Without this modification, when you are in the virtual keyboard, what does a short press of play do? and with the modification what does it do?

Mmmm:
Ahh... On a closer look I see that you are right, it won't work just like that.. nearly though.

Try this patch out..It works on the sim so it should be ok on your player. I had to change some keys though.

To accept your filename you must now press play instead of holding select
Hold menu to enter morse mode
click or hold select to use morse

Tell me if it works...and as a bonus you'll get to learn how to patch too! :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version