Re: [Hecl-devel] Any objections to a new release?
Brought to you by:
davidw
From: Zakaria <z4...@gm...> - 2009-08-12 00:52:45
|
On Wed, Aug 12, 2009 at 5:22 AM, David Welton<da...@de...> wrote: >> 1. You haven't build the packageJarHack > In what sense? It gets built as part of everything else. The one in jars/JarHack.jar is the old version without the icon fix patch >> 2. How about my key-remap.patch? >> I'll send newer one with mapping for Nokia XpressMusic and >> Samsung SGH i550 > Let's talk about this idea some more. Would your idea be to remap all > keys for all phones into something standard? > Maybe you could write a little Hecl script for everyone to try, to see > what sorts of names various keys have on our phones... > Ideally, we'd be able to do this without a hash table lookup for each > value, based on the keycode, but I realize that there is a lot that's > not ideal about x-platform j2me... Are the keycode standardized? I mean is the left key's keycode on one phone to another is the same? I'm new to this J2ME phone thing, but I got some experience coding in J2ME for Siemens Industrial GSM modem. >From the point of hecl programmer comparing by standarized keyname is easier to understand rather than comparing with some number that represent keycode. Compare the following script fragment: set key [$event cget -keyname] if {eq $key UP} { set Y [+ $Y 10] } elseif {eq $key DOWN} { set Y [- $Y 10] } elseif {eq $key LEFT} { set X [- $X 10] } elseif {eq $key RIGHT} { set X [+ $X 10] } with: set key [$event cget -keycode] if {= $key -1} { # UP set Y [+ $Y 10] } elseif {= $key -2} { # DOWN set Y [- $Y 10] } elseif {= $key -3} { # LEFT set X [- $X 10] } elseif {= $key -4} { # RIGHT set X [+ $X 10] } Which one you think could be easier to read and understand by Hecl newbie? Unless you plan to add constant into Hecl: set key [$event cget -keycode] if {= $key @KEY_UP@} { set Y [+ $Y 10] } elseif {= $key @KEY_DOWN@} { set Y [- $Y 10] } elseif {= $key @KEY_LEFT@} { set X [- $X 10] } elseif {= $key @KEY_RIGHT@} { set X [+ $X 10] } Okay everyone please test your phone with the attached script. That script also exists as an example on my Hecl-IDE.hcl attached on previous mail. >> 3. How about replacing midp20\script.hcl with my Hecl-IDE.hcl? > It's been 'script.hcl' for a while - any particular reason to change the name? I mean the content, not the name. I attach it in the previous mail. >> 4. On my dinky hand phone I keep getting "Nothing to display" after >> "Loading Hecl..." alert and then after several seconds, Hecl finally >> running the script. I try to increase a.setTimeout in >> midp20\Hecl.java but no luck. > How many seconds does it take? The limit is currently set at 10 > seconds. I tried an experiment: updating the alert text as things > proceed in the init phase, to give people an idea that something's > happening, but it looks really ugly on my phone. Are you sure you > recompiled the right thing? Try setting it to Alert.FOREVER instead > of a value, and see if that improves things. OK, Alert.FOREVER works, last time I try to change to 120000 but still not works. Maybe a bug in Alert timeout on my phone? >> Maybe you should do an RC release first. > If you're willing to help test it out, I would love to get some QA > before releasing the code:-) Normally I just go ahead and dump stuff, > but if you want to help pick out problems, that is something that > would be extremely useful. Sure, send it out to me. But I think it's better to do some test release so more people could test it on various phone. > Thanks! > -- > David N. Welton -- Zakaria z4...@gm... Yahoo!: z4k4ri4 http://tukangprogram.com http://pemula.linux.or.id |