parent
d2486ec9d6
commit
9979bf4f1c
@ -1 +1 @@
|
|||||||
vlc-1.1.0-pre1.tar.bz2
|
vlc-1.1.0-pre3.tar.bz2
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
/*****************************************************************************
|
|
||||||
* position.h: Support routines for logo and marquee plugin objects
|
|
||||||
*****************************************************************************
|
|
||||||
* Copyright (C) 2010 M2X BV
|
|
||||||
*
|
|
||||||
* Authors: JP Dinger <jpd (at) videolan (dot) org>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License along
|
|
||||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
|
|
||||||
*****************************************************************************/
|
|
||||||
#ifndef POSITION_H
|
|
||||||
#define POSITION_H
|
|
||||||
|
|
||||||
struct posidx_s { const char *n; size_t i; };
|
|
||||||
static const posidx_s posidx[] = {
|
|
||||||
{ "center", 0 },
|
|
||||||
{ "left", 1 },
|
|
||||||
{ "right", 2 },
|
|
||||||
{ "top", 4 },
|
|
||||||
{ "bottom", 8 },
|
|
||||||
{ "top-left", 5 },
|
|
||||||
{ "top-right", 6 },
|
|
||||||
{ "bottom-left", 9 },
|
|
||||||
{ "bottom-right", 10 },
|
|
||||||
};
|
|
||||||
enum { num_posidx = sizeof(posidx)/sizeof(*posidx) };
|
|
||||||
|
|
||||||
static inline const char *position_bynumber( size_t i )
|
|
||||||
{
|
|
||||||
for( const posidx_s *h=posidx; h<posidx+num_posidx; ++h )
|
|
||||||
if( h->i == i )
|
|
||||||
return h->n;
|
|
||||||
return "undefined";
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool position_byname( const char *n, size_t &i )
|
|
||||||
{
|
|
||||||
for( const posidx_s *h=posidx; h<posidx+num_posidx; ++h )
|
|
||||||
if( !strcasecmp( n, h->n ) )
|
|
||||||
{ i=h->i; return true; }
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
@ -1 +1 @@
|
|||||||
2cbda5fa9b52d10d917f23a4a00dbbf5 vlc-1.1.0-pre1.tar.bz2
|
b7d978b3e5285b7012d47bc0b3b74c47 vlc-1.1.0-pre3.tar.bz2
|
||||||
|
@ -1,90 +0,0 @@
|
|||||||
/* This list MUST be in XK_* incremental order (see keysymdef.h),
|
|
||||||
* so that binary search works.
|
|
||||||
* Multiple X keys can match the same VLC key.
|
|
||||||
* X key symbols must be in the first column of the struct. */
|
|
||||||
{ XK_BackSpace, KEY_BACKSPACE, },
|
|
||||||
{ XK_Tab, KEY_TAB, },
|
|
||||||
{ XK_Return, KEY_ENTER, },
|
|
||||||
{ XK_Escape, KEY_ESC, },
|
|
||||||
{ XK_Home, KEY_HOME, },
|
|
||||||
{ XK_Left, KEY_LEFT, },
|
|
||||||
{ XK_Up, KEY_UP, },
|
|
||||||
{ XK_Right, KEY_RIGHT, },
|
|
||||||
{ XK_Down, KEY_DOWN, },
|
|
||||||
{ XK_Page_Up, KEY_PAGEUP, },
|
|
||||||
{ XK_Page_Down, KEY_PAGEDOWN, },
|
|
||||||
{ XK_End, KEY_END, },
|
|
||||||
{ XK_Begin, KEY_HOME, },
|
|
||||||
{ XK_Insert, KEY_INSERT, },
|
|
||||||
{ XK_Menu, KEY_MENU },
|
|
||||||
|
|
||||||
/* Numeric pad keys */
|
|
||||||
{ XK_KP_Space, ' ', },
|
|
||||||
{ XK_KP_Tab, KEY_TAB, },
|
|
||||||
{ XK_KP_Enter, KEY_ENTER, },
|
|
||||||
{ XK_KP_F1, KEY_F1, },
|
|
||||||
{ XK_KP_F2, KEY_F2, },
|
|
||||||
{ XK_KP_F3, KEY_F3, },
|
|
||||||
{ XK_KP_F4, KEY_F4, },
|
|
||||||
{ XK_KP_Home, KEY_HOME, },
|
|
||||||
{ XK_KP_Left, KEY_LEFT, },
|
|
||||||
{ XK_KP_Up, KEY_UP, },
|
|
||||||
{ XK_KP_Right, KEY_RIGHT, },
|
|
||||||
{ XK_KP_Down, KEY_DOWN, },
|
|
||||||
{ XK_KP_Page_Up, KEY_PAGEUP, },
|
|
||||||
{ XK_KP_Page_Down, KEY_PAGEDOWN, },
|
|
||||||
{ XK_KP_End, KEY_END, },
|
|
||||||
{ XK_KP_Begin, KEY_HOME, }, /* KP middle (5 without numlock) */
|
|
||||||
{ XK_KP_Insert, KEY_INSERT, },
|
|
||||||
{ XK_KP_Delete, KEY_DELETE, },
|
|
||||||
{ XK_KP_Equal, '=', },
|
|
||||||
{ XK_KP_Multiply, '*', },
|
|
||||||
{ XK_KP_Add, '+', },
|
|
||||||
{ XK_KP_Separator, ',', },
|
|
||||||
{ XK_KP_Subtract, '-', },
|
|
||||||
{ XK_KP_Decimal, ',', }, /* FIXME: I don't know that key */
|
|
||||||
{ XK_KP_Divide, '/', },
|
|
||||||
{ XK_KP_0, '0', },
|
|
||||||
{ XK_KP_1, '1', },
|
|
||||||
{ XK_KP_2, '2', },
|
|
||||||
{ XK_KP_3, '3', },
|
|
||||||
{ XK_KP_4, '4', },
|
|
||||||
{ XK_KP_5, '5', },
|
|
||||||
{ XK_KP_6, '6', },
|
|
||||||
{ XK_KP_7, '7', },
|
|
||||||
{ XK_KP_8, '8', },
|
|
||||||
{ XK_KP_9, '9', },
|
|
||||||
|
|
||||||
{ XK_F1, KEY_F1, },
|
|
||||||
{ XK_F2, KEY_F2, },
|
|
||||||
{ XK_F3, KEY_F3, },
|
|
||||||
{ XK_F4, KEY_F4, },
|
|
||||||
{ XK_F5, KEY_F5, },
|
|
||||||
{ XK_F6, KEY_F6, },
|
|
||||||
{ XK_F7, KEY_F7, },
|
|
||||||
{ XK_F8, KEY_F8, },
|
|
||||||
{ XK_F9, KEY_F9, },
|
|
||||||
{ XK_F10, KEY_F10, },
|
|
||||||
{ XK_F11, KEY_F11, },
|
|
||||||
{ XK_F12, KEY_F12, },
|
|
||||||
{ XK_Delete, KEY_DELETE, },
|
|
||||||
|
|
||||||
/* XFree86 extensions */
|
|
||||||
{ XF86XK_AudioLowerVolume, KEY_VOLUME_DOWN, },
|
|
||||||
{ XF86XK_AudioMute, KEY_VOLUME_MUTE, },
|
|
||||||
{ XF86XK_AudioRaiseVolume, KEY_VOLUME_UP, },
|
|
||||||
{ XF86XK_AudioPlay, KEY_MEDIA_PLAY_PAUSE, },
|
|
||||||
{ XF86XK_AudioStop, KEY_MEDIA_STOP, },
|
|
||||||
{ XF86XK_AudioPrev, KEY_MEDIA_PREV_TRACK, },
|
|
||||||
{ XF86XK_AudioNext, KEY_MEDIA_NEXT_TRACK, },
|
|
||||||
{ XF86XK_HomePage, KEY_BROWSER_HOME, },
|
|
||||||
{ XF86XK_Search, KEY_BROWSER_SEARCH, },
|
|
||||||
{ XF86XK_Back, KEY_BROWSER_BACK, },
|
|
||||||
{ XF86XK_Forward, KEY_BROWSER_FORWARD, },
|
|
||||||
{ XF86XK_Stop, KEY_BROWSER_STOP, },
|
|
||||||
{ XF86XK_Refresh, KEY_BROWSER_REFRESH, },
|
|
||||||
{ XF86XK_Favorites, KEY_BROWSER_FAVORITES, },
|
|
||||||
{ XF86XK_AudioPause, KEY_MEDIA_PLAY_PAUSE, },
|
|
||||||
{ XF86XK_Reload, KEY_BROWSER_REFRESH, },
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue