FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Extra Buttons

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
Dekaritae
Newbie


Joined: 14 Aug 2006
Posts: 3

PostPosted: Tue Aug 15, 2006 3:07 am    Post subject: Extra Buttons Reply with quote

I was just wondering if there's a way to map device specific keys that aren't included in the common mapping. I'm writing a fairly complete remote, and I'd like to be able to use extra keys on my device (Tapwave Zodiac L and R buttons, Function button, Action buttons).
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Aug 15, 2006 8:18 pm    Post subject: Re: Extra Buttons Reply with quote

Hi Dekaritae,

Try setting the "rawCodes" property of the keypad widget to TRUE and see what codes you get. This setting will circumvent the mapping process and instead deliver more or less unchanged event codes from the device.

Please note that all controls on the Zodiac may not result in events. There are custom Tapwave APIs for some controls. Needless to say, now that Tapwave has gone belly-up, it's not exactly a hi-prio item to make use of those APIs.

Best.
--
Jonas

[quote="Dekaritae"]I was just wondering if there's a way to map device specific keys that aren't included in the common mapping. I'm writing a fairly complete remote, and I'd like to be able to use extra keys on my device (Tapwave Zodiac L and R buttons, Function button, Action buttons).[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dekaritae
Newbie


Joined: 14 Aug 2006
Posts: 3

PostPosted: Wed Aug 16, 2006 3:19 am    Post subject: Reply with quote

Ok, just tried that. No extra key codes are shown, but the ones that were mapped to "s", "c" and "f" are displayed as ":J, "Hard:518" and "Hard:519".

However, I think I've figured out a way to accomplish what I want, without the use of the extra keys; I can assign different actions to each button depending on whether they are pressed while or immediately after another key is pressed.
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Wed Aug 16, 2006 11:40 am    Post subject: Reply with quote

Ah. Glad to hear you found a workaround. You might also want to consider implementing "long-press" for some functions. Just trigger the action when you get the "key repeat" event. (you can see how this is done in the iTunes controller script; long play/pause -> iTunes visualizer on/off).

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group