You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
I Have fix unity mod key event bug, add test it ok, The origin code will wend two ModKey event to ImGui。 Eg: ModControl when left and right control not down it only send to false event to imgui. but when only one key press ,it will send down and up event to imgui。
to fixed then bug, I have separate normal key event and mod key event。 and cache the event is it not change。only send event to imgui when it status change。
using ImGuiNET;
using System.Collections.Generic;
using UImGui.Assets;
using UnityEngine;
namespace UImGui.Platform
{
// TODO: Check this feature and remove from here when checked and done.
// Implemented features:
// [x] Platform: Clipboard support.
// [x] Platform: Mouse cursor shape and visibility. Disable with io.ConfigFlags |= ImGuiConfigFlags.NoMouseCursorChange.
// [x] Platform: Keyboard arrays indexed using KeyCode codes, e.g. ImGui.IsKeyPressed(KeyCode.Space).
// [ ] Platform: Gamepad support. Enabled with io.ConfigFlags |= ImGuiConfigFlags.NavEnableGamepad.
// [] Platform: IME support.
// [] Platform: INI settings support.
Describe the bug
About Unity Mod key
To Reproduce
I Have fix unity mod key event bug, add test it ok, The origin code will wend two ModKey event to ImGui。 Eg: ModControl when left and right control not down it only send to false event to imgui. but when only one key press ,it will send down and up event to imgui。
to fixed then bug, I have separate normal key event and mod key event。 and cache the event is it not change。only send event to imgui when it status change。
using ImGuiNET;
using System.Collections.Generic;
using UImGui.Assets;
using UnityEngine;
namespace UImGui.Platform
{
// TODO: Check this feature and remove from here when checked and done.
// Implemented features:
// [x] Platform: Clipboard support.
// [x] Platform: Mouse cursor shape and visibility. Disable with io.ConfigFlags |= ImGuiConfigFlags.NoMouseCursorChange.
// [x] Platform: Keyboard arrays indexed using KeyCode codes, e.g. ImGui.IsKeyPressed(KeyCode.Space).
// [ ] Platform: Gamepad support. Enabled with io.ConfigFlags |= ImGuiConfigFlags.NavEnableGamepad.
// [
] Platform: IME support.] Platform: INI settings support.// [
}
The text was updated successfully, but these errors were encountered: