Author: tom
Date: Tue Mar 31 09:55:28 2009
New Revision: 5041

URL: http://svn.slimdevices.com/jive?rev=5041&view=rev
Log:
Bug:N/A
Description:
Added unassignedActions so action that don't have hard buttons can be 
registered easily.

Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua?rev=5041&r1=5040&r2=5041&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua 
(original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua Tue 
Mar 31 09:55:28 2009
@@ -108,3 +108,8 @@
        [KEY_REW | KEY_PAUSE] = "take_screenshot",  -- a stab at how to handle 
multi-press
 }
 
+-- enter actions here that are triggered in the app but not by any hard input 
mechanism. Entering them here will get them registered so they can be used
+unassignedActionMappings = {
+       "finish_operation",
+}
+

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua?rev=5041&r1=5040&r2=5041&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua Tue Mar 
31 09:55:28 2009
@@ -690,6 +690,9 @@
        for key, action in 
pairs(self.inputToActionMap.charActionMappings.press) do
                self:registerAction(action)
        end
+       for i, action in ipairs(self.inputToActionMap.unassignedActionMappings) 
do
+               self:registerAction(action)
+       end
 end
 
 

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to