![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
#include "../imgui.h"
#include "imgui_impl_win32.h"
#include <windows.h>
#include <Xinput.h>
#include <tchar.h>
Macros | |
#define | WIN32_LEAN_AND_MEAN |
#define | MAP_BUTTON(NAV_NO, BUTTON_ENUM) { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; } |
#define | MAP_ANALOG(NAV_NO, VALUE, V0, V1) { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; } |
#define | WM_MOUSEHWHEEL 0x020E |
#define | DBT_DEVNODES_CHANGED 0x0007 |
Functions | |
bool | ImGui_ImplWin32_Init (void *hwnd) |
void | ImGui_ImplWin32_Shutdown () |
void | ImGui_ImplWin32_NewFrame () |
IMGUI_IMPL_API LRESULT | ImGui_ImplWin32_WndProcHandler (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
#define DBT_DEVNODES_CHANGED 0x0007 |
#define MAP_ANALOG | ( | NAV_NO, | |
VALUE, | |||
V0, | |||
V1 | |||
) | { float vn = (float)(VALUE - V0) / (float)(V1 - V0); if (vn > 1.0f) vn = 1.0f; if (vn > 0.0f && io.NavInputs[NAV_NO] < vn) io.NavInputs[NAV_NO] = vn; } |
#define MAP_BUTTON | ( | NAV_NO, | |
BUTTON_ENUM | |||
) | { io.NavInputs[NAV_NO] = (gamepad.wButtons & BUTTON_ENUM) ? 1.0f : 0.0f; } |
#define WIN32_LEAN_AND_MEAN |
#define WM_MOUSEHWHEEL 0x020E |
bool ImGui_ImplWin32_Init | ( | void * | hwnd | ) |
void ImGui_ImplWin32_NewFrame | ( | ) |
void ImGui_ImplWin32_Shutdown | ( | ) |
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler | ( | HWND | hwnd, |
UINT | msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |