浏览代码

update ctrl for windows

/main
siyao 3 年前
当前提交
5826b8ae
共有 4 个文件被更改,包括 3 次插入0 次删除
  1. 1
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanelWrapper.cs
  2. 1
      com.unity.uiwidgets/Runtime/gestures/converter.cs
  3. 1
      com.unity.uiwidgets/Runtime/ui/pointer.cs

1
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanelWrapper.cs


modifier |= e.shift ? (1 << (int) FunctionKey.shift) : 0;
modifier |= e.alt ? (1 << (int) FunctionKey.alt) : 0;
modifier |= e.command ? (1 << (int) FunctionKey.command) : 0;
modifier |= e.control ? (1 << (int) FunctionKey.control) : 0;
UIWidgetsPanel_onKey(ptr: _ptr, keyCode: e.keyCode, e.type == EventType.KeyDown, modifier);
if (e.character != 0 || e.keyCode == KeyCode.Backspace) {
PointerEventConverter.KeyEvent.Enqueue(new Event(other: e));

1
com.unity.uiwidgets/Runtime/gestures/converter.cs


keyBoardEvent.shift = (datum.modifier & (1 << (int) FunctionKey.shift)) > 0;
keyBoardEvent.alt = (datum.modifier & (1 << (int) FunctionKey.alt)) > 0;
keyBoardEvent.command = (datum.modifier & (1 << (int) FunctionKey.command)) > 0;
keyBoardEvent.control = (datum.modifier & (1 << (int) FunctionKey.control)) > 0;
RawKeyboard.instance._handleKeyEvent(keyBoardEvent);
TextInput.OnGUI();

1
com.unity.uiwidgets/Runtime/ui/pointer.cs


shift = 1,
alt = 2,
command = 3,
control = 4,
}
public readonly struct PointerData {

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存