fix mouse4 & mouse5 sys btn
This commit is contained in:
parent
b909a392f1
commit
f821ce6490
@ -77,7 +77,7 @@ INTERNAL struct sock_address sock_address_from_ip_port_cstr(char *ip_cstr, char
|
||||
if (status == 0) {
|
||||
while (ai_res) {
|
||||
if (ai_res->ai_family == AF_INET) {
|
||||
struct sockaddr_in *sockaddr = (struct sockaddr_in *)(void *)ai_res->ai_addr;
|
||||
struct sockaddr_in *sockaddr = (struct sockaddr_in *)ai_res->ai_addr;
|
||||
res.valid = true;
|
||||
res.family = SOCK_ADDRESS_FAMILY_IPV4;
|
||||
res.portnb = sockaddr->sin_port;
|
||||
|
||||
@ -1113,9 +1113,9 @@ INTERNAL LRESULT CALLBACK win32_window_proc(HWND hwnd, UINT msg, WPARAM wparam,
|
||||
case WM_XBUTTONUP: case WM_XBUTTONDOWN: {
|
||||
u32 wparam_xbutton = GET_XBUTTON_WPARAM(wparam);
|
||||
if (wparam_xbutton == XBUTTON1) {
|
||||
button = SYS_BTN_M3;
|
||||
} else if (wparam_xbutton == XBUTTON2) {
|
||||
button = SYS_BTN_M4;
|
||||
} else if (wparam_xbutton == XBUTTON2) {
|
||||
button = SYS_BTN_M5;
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
@ -150,7 +150,6 @@ GLOBAL READONLY enum user_bind_kind g_binds[SYS_BTN_COUNT] = {
|
||||
[SYS_BTN_MWHEELUP] = USER_BIND_KIND_ZOOM_IN,
|
||||
[SYS_BTN_MWHEELDOWN] = USER_BIND_KIND_ZOOM_OUT,
|
||||
[SYS_BTN_M3] = USER_BIND_KIND_PAN,
|
||||
[SYS_BTN_CTRL] = USER_BIND_KIND_CTRL_TEST,
|
||||
|
||||
#if RTC
|
||||
/* Debug */
|
||||
@ -1082,8 +1081,6 @@ INTERNAL void user_update(void)
|
||||
{
|
||||
/* Draw collider using support points */
|
||||
u32 detail = 32;
|
||||
//u32 detail = 64;
|
||||
//u32 detail = 512;
|
||||
draw_collider_line(G.ui_cmd_buffer, G.world_to_ui_xf, collider, xf, thickness, color, detail);
|
||||
}
|
||||
{
|
||||
|
||||
@ -25,7 +25,6 @@ enum user_bind_kind {
|
||||
USER_BIND_KIND_FIRE,
|
||||
|
||||
/* Testing */
|
||||
|
||||
USER_BIND_KIND_DEBUG_CLEAR,
|
||||
USER_BIND_KIND_DEBUG_SPAWN,
|
||||
USER_BIND_KIND_DEBUG_FOLLOW,
|
||||
@ -38,7 +37,6 @@ enum user_bind_kind {
|
||||
USER_BIND_KIND_ZOOM_IN,
|
||||
USER_BIND_KIND_ZOOM_OUT,
|
||||
USER_BIND_KIND_PAN,
|
||||
USER_BIND_KIND_CTRL_TEST,
|
||||
|
||||
#if RTC
|
||||
/* Debug */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user