win32 : handling of mouse keyboard emulation + panning
This commit is contained in:
parent
e2637097fb
commit
8ebe6a8867
@ -33,6 +33,9 @@
|
|||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
#include "unicode.h"
|
#include "unicode.h"
|
||||||
|
|
||||||
|
extern int Handle_special_key_press(void);
|
||||||
|
extern int Release_control(int key_code, int modifier);
|
||||||
|
|
||||||
extern int user_feedback_required;
|
extern int user_feedback_required;
|
||||||
extern word Input_new_mouse_X;
|
extern word Input_new_mouse_X;
|
||||||
extern word Input_new_mouse_Y;
|
extern word Input_new_mouse_Y;
|
||||||
@ -241,11 +244,13 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Key = wParam|Get_Key_modifiers();
|
Key = wParam|Get_Key_modifiers();
|
||||||
|
Handle_special_key_press();
|
||||||
user_feedback_required = 1;
|
user_feedback_required = 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
case WM_SYSKEYUP:
|
case WM_SYSKEYUP:
|
||||||
case WM_KEYUP:
|
case WM_KEYUP:
|
||||||
|
Release_control(wParam, Get_Key_modifiers());
|
||||||
return 0;
|
return 0;
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
Key_ANSI = Key_UNICODE = wParam;
|
Key_ANSI = Key_UNICODE = wParam;
|
||||||
@ -332,9 +337,7 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
|||||||
int Init_Win32(HINSTANCE hInstance, HINSTANCE hPrevInstance)
|
int Init_Win32(HINSTANCE hInstance, HINSTANCE hPrevInstance)
|
||||||
{
|
{
|
||||||
WNDCLASS wc;
|
WNDCLASS wc;
|
||||||
//HINSTANCE hInstance;
|
(void)hPrevInstance;
|
||||||
|
|
||||||
//hInstance = GetModuleHandle(NULL);
|
|
||||||
|
|
||||||
wc.style = 0;
|
wc.style = 0;
|
||||||
wc.lpfnWndProc = Win32_WindowProc;
|
wc.lpfnWndProc = Win32_WindowProc;
|
||||||
@ -575,6 +578,7 @@ int SetPalette(const T_Components * colors, int firstcolor, int ncolors)
|
|||||||
|
|
||||||
void Clear_border(byte color)
|
void Clear_border(byte color)
|
||||||
{
|
{
|
||||||
|
(void)color;
|
||||||
}
|
}
|
||||||
|
|
||||||
volatile int Allow_colorcycling = 0;
|
volatile int Allow_colorcycling = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user