/// <summary> /// キー入力内容をキーイベントから抜き出す /// </summary> /// <param name="key"></param> /// <returns></returns> public static EnableKeys ToEnableKeys(System.Windows.Input.Key key, System.Windows.Input.KeyboardDevice keyboard) { EnableKeys keyConbination = ToEnableKeysConbination(key, keyboard); if (keyConbination != EnableKeys.Else) { return(keyConbination); } return(ToEnableKeysOneKey(key)); }
public static bool IsKeyCursor(EnableKeys key) { if (key == EnableKeys.Up || key == EnableKeys.Right || key == EnableKeys.Down || key == EnableKeys.Left) { return(true); } return(false); }