public void RegisterButton(string name, StandardInput.Button type) { if (mVirtualInputDevices != null) { mVirtualInputDevices.Register(name, type); } }
public void Register(string name, StandardInput.Button buttonType) { if (!buttons.ContainsKey(name)) { buttons[name] = buttonType; } else { this.d("damon", "按钮已经被注册"); } }