Author: richard
Date: Tue Feb 24 05:51:47 2009
New Revision: 4432

URL: http://svn.slimdevices.com/jive?rev=4432&view=rev
Log:
Bug: N/A
Description:
Add support for Print Screen key, to take screenshots.


Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/ui/Framework.lua
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive.h
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_framework.c
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.c
    7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.pkg

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=4432&r1=4431&r2=4432&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua 
(original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/InputToActionMap.lua Tue 
Feb 24 05:51:47 2009
@@ -78,6 +78,7 @@
        [KEY_REW] = "jump_rew",
        [KEY_VOLUME_UP] = "volume_up",
        [KEY_VOLUME_DOWN] = "volume_down",
+       [KEY_PRINT] = "take_screenshot",
 }
 
 --Hmm, this won't work yet since we still look for KEY_PRESS in a lot of 
places, and would get double responses

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=4432&r1=4431&r2=4432&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 Feb 
24 05:51:47 2009
@@ -221,6 +221,7 @@
        module.KEY_PAGE_DOWN = jive.ui.KEY_PAGE_DOWN
        module.KEY_VOLUME_UP = jive.ui.KEY_VOLUME_UP
        module.KEY_VOLUME_DOWN = jive.ui.KEY_VOLUME_DOWN
+       module.KEY_PRINT = jive.ui.KEY_PRINT
 
        module.FRAME_RATE = jive.ui.FRAME_RATE
 end

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive.h
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive.h?rev=4432&r1=4431&r2=4432&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive.h (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive.h Tue Feb 24 05:51:47 2009
@@ -136,6 +136,7 @@
        JIVE_KEY_VOLUME_DOWN            = 0x2000,
        JIVE_KEY_PAGE_UP                = 0x4000,
        JIVE_KEY_PAGE_DOWN              = 0x8000,
+       JIVE_KEY_PRINT                  = 0x10000,
 } JiveKey;
 
 

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_framework.c
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_framework.c?rev=4432&r1=4431&r2=4432&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_framework.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/jive_framework.c Tue Feb 24 
05:51:47 2009
@@ -88,6 +88,7 @@
        { SDLK_AudioLowerVolume,JIVE_KEY_VOLUME_DOWN },
        { SDLK_PAGEUP,          JIVE_KEY_PAGE_UP },
        { SDLK_PAGEDOWN,        JIVE_KEY_PAGE_DOWN },
+       { SDLK_PRINT,           JIVE_KEY_PRINT },
        { SDLK_UNKNOWN,         JIVE_KEY_NONE },
 };
 

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.c
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.c?rev=4432&r1=4431&r2=4432&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.c (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.c Tue Feb 24 
05:51:47 2009
@@ -2228,6 +2228,7 @@
    tolua_constant(tolua_S,"KEY_VOLUME_DOWN",JIVE_KEY_VOLUME_DOWN);
    tolua_constant(tolua_S,"KEY_PAGE_UP",JIVE_KEY_PAGE_UP);
    tolua_constant(tolua_S,"KEY_PAGE_DOWN",JIVE_KEY_PAGE_DOWN);
+   tolua_constant(tolua_S,"KEY_PRINT",JIVE_KEY_PRINT);
    
tolua_cclass(tolua_S,"Surface","Surface","",tolua_jive_jive_ui_Surface_free00);
    tolua_beginmodule(tolua_S,"Surface");
     tolua_function(tolua_S,"newRGB",tolua_jive_jive_ui_Surface_newRGB00);

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.pkg
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.pkg?rev=4432&r1=4431&r2=4432&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.pkg (original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/src/ui/lua_jiveui.pkg Tue Feb 24 
05:51:47 2009
@@ -139,6 +139,7 @@
        JIVE_KEY_FWD @ KEY_FWD                  = 0x0800,
        JIVE_KEY_VOLUME_UP @ KEY_VOLUME_UP      = 0x1000,
        JIVE_KEY_VOLUME_DOWN @ KEY_VOLUME_DOWN  = 0x2000,
+       JIVE_KEY_PRINT @ KEY_PRINT              = 0x10000,
 } Key;
 
 

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

Reply via email to