PDA

View Full Version : Lua Event as an action on a hardkey fails



vitello
January 16th, 2008, 11:21 PM
Lua Event as an action on a hardkey for my ppc (dell axim x51v) isn't working. I programed the
hardkeys on ppc with a number of useful commands (mute, volume up, channel up, ...) for my
home theater system. What I found was that some commands worked on the hardkeys and
some didn't. This has been driving me crazy for the last couple of days until I realized a pattern.
If the hardkey action was an Lua Event which should execute an NetRemote.ExecuteAction it doesn't work.
Girder doesn't recieve the action. What does work is an Execute lua code (OnDown).

I'm guessing that this is a bug and not some limitation on hardkey usage. If it isn't a bug, then
it would be useful to have it documented somewhere what works and doesn't work for hardkeys.

Peter

Rob H
January 17th, 2008, 01:20 AM
Sounds like it's a bug to me - you may in fact be the first person to try this!

tmorten
January 17th, 2008, 04:44 PM
G5 or G4? I think this might be a G5 issue that was reported separately... I'll need to bump this up in Ron's awareness.

Best,
Tim

vitello
January 17th, 2008, 07:31 PM
Tim,

I'm using G5. PPC hardkey support is really useful as I can find the buttons by touch without having to take my eyes off my tv screen.

Peter

tmorten
January 18th, 2008, 07:06 AM
I'm with you - that's one of the reasons I think the iPhone/iPod touch are less than ideal as remote controls :). Anyhow, I believe the issue is actually on the G4 side (works with G4 and used to work with earlier G5 builds), so I'll ping Ron about it.

Best,
Tim

Rob H
January 18th, 2008, 09:28 AM
Why would it be different on a hardkey though Tim?

Peter, am I correct in assuming that you've tried one of these Lua event actions on a graphical button?

vitello
January 18th, 2008, 07:33 PM
Rob,

Yes, the Lua event actions work fine on a graphical button. I originally had a page with
graphical and hardkey buttons both using an alias to a graphical button on a different page.
The graphical buttons worked, but the hardkey buttons didn't. Then I tried pasting the Lua
event action directly onto the hardkey, but that also didn't work either. So the Lua events are
definitely working events on the graphical buttons. I'll check out whether a print statement
shows up on the NRD side. I've only verified that nothing is going through to G5.

Peter

Rob H
January 19th, 2008, 12:22 AM
Thanks Peter - I'd be interested to know what happens if you just call print from a Lua event on a hardkey.