예제 #1
0
KeySym unicode2keysym(wchar_t wc)
{
  static const keymap_t keymap = GetKeyMap();
  keymap_t::const_iterator itr = keymap.find(wc);
  if ( itr != keymap.end())
    return itr->second;
  return NoSymbol;
}
예제 #2
0
파일: x11_loop.hpp 프로젝트: mstorsjo/vlc
 /// Translate X11 KeySyms to VLC key codes.
 static int keysymToVlcKey( KeySym keysym )
 {
     keymap_t::const_iterator i=m_keymap.find(keysym);
     return i!=m_keymap.end() ? (i->second) : keysym;
 }