Ejemplo n.º 1
0
 private void importKeyLine(String line, XWKeyList list)
 {
     String[] spl = line.Split(',');
     byte b_key = Byte.Parse(spl[0]);
     Keys key = (Keys)b_key;
     if (line.ToLower().Contains("shift"))
         key = key | Keys.Shift;
     if (line.ToLower().Contains("alt"))
         key = key | Keys.Alt;
     if (line.ToLower().Contains("control"))
         key = key | Keys.Control;
     list.Add(key);
 }
Ejemplo n.º 2
0
 public static XWKeyList getInstance()
 {
     if (_instance == null) _instance = new XWKeyList();
     return _instance;
 }
Ejemplo n.º 3
0
 private void clearKeymap()
 {
     _allKeys.Clear();
     keyMapUp = new XWKeyList(){};
     keyMapDown = new XWKeyList(){};
     keyMapLeft = new XWKeyList(){};
     keyMapRight = new XWKeyList(){};
     keyMapUpLeft = new XWKeyList(){};
     keyMapUpRight = new XWKeyList(){};
     keyMapDownLeft = new XWKeyList(){};
     keyMapDownRight = new XWKeyList(){};
     keyMapClick = new XWKeyList(){};
     keyMapDoubleClick = new XWKeyList(){};
     keyMapZoomIn = new XWKeyList(){};
     keyMapZoomOut = new XWKeyList(){};
     keyMapMagnifier = new XWKeyList() {};
     keyMapNavigate = new XWKeyList(){};
     keyMapClose = new XWKeyList(){};
     keyMapKeyboard = new XWKeyList(){};
     keyMapFavourites = new XWKeyList(){};
     keyMapShortCuts = new XWKeyList(){};
     keyMapTAB = new XWKeyList(){};
     keyMapESC = new XWKeyList(){};
     keyMapToggleMouse = new XWKeyList(){};
     keyMapContextMenu = new XWKeyList(){};
     keyMapF5 = new XWKeyList(){};
     keyMapDelete = new XWKeyList(){};
 }