public MainPage() { this.InitializeComponent(); MyTitle.Text = Title; SerialPort = new BluetoothSerialLib.BluetoothSerial(); InitializeRfcommDeviceService(); Keypad = SerialPort.Keypad; //SetupKPadEventHandlers(); SetupDelegates(); }
public KeyFunctions(KeypadUWPLib.Keypad keypad) { Keypresses = new Dictionary <char, Keypress>(); foreach (char ch in KeypadUWPLib.KeypadEventArgs.ValidKeys) { Keypresses.Add(ch, null); } Keypad = keypad; Keypad.KeyDown += Keypad_KeyDown; }
public BluetoothSerial() { //InitializeRfcommDeviceService(); Keypad = new KeypadUWPLib.Keypad(); ////Specific handlers //Keypad.KeyDown += Keypad_KeyDown; //Keypad.KeyUp += Keypad_KeyUp; //Keypad.KeyHolding += Keypad_KeyHolding; ////Common handlers //Keypad.KeyDown += Keypad_Keys; //Keypad.KeyUp += Keypad_Keys; //Keypad.KeyHolding += Keypad_Keys; }