-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImGui window not rendering in entire screen #8311
Comments
Sorry but #1586 |
if (FallbackMode)
{
IntPtr msHookPtr = Marshal.GetFunctionPointerForDelegate(new WNDHook(MouseProcHook));
IntPtr msKHookPtr = Marshal.GetFunctionPointerForDelegate(new WNDHook(KeyboardProcHook));
IntPtr msgHookPtr = Marshal.GetFunctionPointerForDelegate(new WNDHook(GetMsgHook));
hk_khook = NativeApi.SetWindowsHookEx(2, msKHookPtr, Marshal.GetHINSTANCE(typeof(VynkL).Module), 0);
hk_mhook = NativeApi.SetWindowsHookEx(7, msHookPtr, Marshal.GetHINSTANCE(typeof(VynkL).Module), 0);
hk_msghook = NativeApi.SetWindowsHookEx(3, msgHookPtr, Marshal.GetHINSTANCE(typeof(VynkL).Module), 0);
}
else
{
DefWindowProc defWindowProc = new DefWindowProc();
defWindowProc.WindowHandle = hwnd;
defWindowProc.Install();
Hooks.Add(defWindowProc);
defWindowProc.WindowProc += (IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam) =>
{
try
{
if (ImGuiInited && ShowMenu)
{
NativeApi.CImguiWrapper.CImGui_ImplWin32_WndProcHandler(hwnd, msg, wParam, lParam);
}
}
catch { }
return IntPtr.Zero;
};
SetCursorPos NewHookCursor = new SetCursorPos();
NewHookCursor.Install();
Hooks.Add(NewHookCursor);
NewHookCursor.SetCursorPos_Event += (int x, int y) =>
{
NewHookCursor.BlockInput = ShowMenu;
return false;
};
} Hey... I am still new to ImGui and the intricacies of handling input correctly, which is why I’ve been experimenting with these methods (I didn't found a correct way to handle custom input ;-;). My goal is to build a user interface and debugging tools for my 2d multiplayer game (a rythm game!), these sample code I post here is a part of debugging ui. I know I'm hooking some windows api which kinda like cheating program, can you help me how to handle input correctly? (or just a way to send cursor/keyboard input to imgui) I would greatly appreciate any guidance or support you can provide, as I am eager to improve my understanding of this process and create a legitimate application. |
The Getting Started guide states everything you need to do for the win32 backend which you are using. It seems pretty clear that you haven’t read those pages nor the FAQ. Your profile violates the rules as specified by #1586, those rules are designed to protect our time and energy and prevent help vampires from consuming too many resources which is detrimental to the development of dear imgui. |
Sorry for violate the rules, I will try to read those pages and FAQ then try to fix it myself 😓 |
Version/Branch of Dear ImGui:
Version 1.91.5
Back-ends:
imgui_impl_dx9.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Microsoft Visual C/C++ (19.36.34435) [C++] [Windows]
Full config/build information:
Compiler and linker
CC = cl
LD = link
Object files (manually concatenate)
OBJS = cimgui.obj
./imgui/imgui.obj
./imgui/imgui_draw.obj
./imgui/imgui_demo.obj
./imgui/imgui_tables.obj
./imgui/imgui_widgets.obj
./imgui/backends/imgui_impl_dx9.obj
./imgui/backends/imgui_impl_win32.obj
./imgui/backends/imgui_impl_opengl3.obj
cimgui_impl.obj
Compiler flags
CXXFLAGS = /O2 /EHsc /nologo /I./imgui /DUNICODE /D_UNICODE
LINKFLAGS = /DLL /nologo /OUT:cimgui.dll d3dcompiler.lib opengl32.lib gdi32.lib dwmapi.lib
Targets
all: cimgui.dll
Rule for building the DLL
cimgui.dll: $(OBJS)
(LINKFLAGS) $(OBJS)
Rule for compiling .cpp to .obj
.cpp.obj:
(CXXFLAGS) /c @
Clean
clean: (OBJS))
del /q
Details:
I am currently working on a c# project and as you can see, the ImGui window is stuck on an invisible wall and cannot cross this limit. (the avalable area only covers a fifth of my screen, wich is problematic).
does anyone have any clue what's causing all of this ?
(Sorry, my project is written in c#, using modified cimgui [Implement backends for this])
(Sorry for can't post the real screenshot, but my issuse like this screenshot too)
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: