Fixed copy and paste error in gdi/gdip demos
This commit is contained in:
parent
c87a55cf56
commit
fd5239fa82
|
@ -559,20 +559,20 @@ nk_gdi_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
|||
|
||||
case VK_HOME:
|
||||
nk_input_key(&gdi.ctx, NK_KEY_TEXT_START, down);
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_START, down);
|
||||
nk_input_key(&gdi.ctx, NK_KEY_SCROLL_START, down);
|
||||
return 1;
|
||||
|
||||
case VK_END:
|
||||
nk_input_key(&gdi.ctx, NK_KEY_TEXT_END, down);
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_END, down);
|
||||
nk_input_key(&gdi.ctx, NK_KEY_SCROLL_END, down);
|
||||
return 1;
|
||||
|
||||
case VK_NEXT:
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_DOWN, down);
|
||||
nk_input_key(&gdi.ctx, NK_KEY_SCROLL_DOWN, down);
|
||||
return 1;
|
||||
|
||||
case VK_PRIOR:
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_UP, down);
|
||||
nk_input_key(&gdi.ctx, NK_KEY_SCROLL_UP, down);
|
||||
return 1;
|
||||
|
||||
case 'C':
|
||||
|
|
|
@ -792,21 +792,21 @@ nk_gdip_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
|||
return 1;
|
||||
|
||||
case VK_HOME:
|
||||
nk_input_key(&gdi.ctx, NK_KEY_TEXT_START, down);
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_START, down);
|
||||
nk_input_key(&gdip.ctx, NK_KEY_TEXT_START, down);
|
||||
nk_input_key(&gdip.ctx, NK_KEY_SCROLL_START, down);
|
||||
return 1;
|
||||
|
||||
case VK_END:
|
||||
nk_input_key(&gdi.ctx, NK_KEY_TEXT_END, down);
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_END, down);
|
||||
nk_input_key(&gdip.ctx, NK_KEY_SCROLL_END, down);
|
||||
return 1;
|
||||
|
||||
case VK_NEXT:
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_DOWN, down);
|
||||
nk_input_key(&gdip.ctx, NK_KEY_SCROLL_DOWN, down);
|
||||
return 1;
|
||||
|
||||
case VK_PRIOR:
|
||||
nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_UP, down);
|
||||
nk_input_key(&gdip.ctx, NK_KEY_SCROLL_UP, down);
|
||||
return 1;
|
||||
|
||||
case 'C':
|
||||
|
|
Loading…
Reference in New Issue