mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-10 11:23:29 +00:00
j
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@401 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -44,7 +44,9 @@ enum MwLLKeyEnum {
|
|||||||
MwLLKeyUp,
|
MwLLKeyUp,
|
||||||
MwLLKeyDown,
|
MwLLKeyDown,
|
||||||
MwLLKeyEnter,
|
MwLLKeyEnter,
|
||||||
MwLLKeyEscape
|
MwLLKeyEscape,
|
||||||
|
MwLLKeyLeftShift,
|
||||||
|
MwLLKeyRightShift
|
||||||
};
|
};
|
||||||
|
|
||||||
enum MwLLMouseEnum {
|
enum MwLLMouseEnum {
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ static LRESULT CALLBACK wndproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) {
|
|||||||
if(wp == VK_RETURN) n = MwLLKeyEnter;
|
if(wp == VK_RETURN) n = MwLLKeyEnter;
|
||||||
if(wp == VK_BACK) n = MwLLKeyBackSpace;
|
if(wp == VK_BACK) n = MwLLKeyBackSpace;
|
||||||
if(wp == VK_ESCAPE) n = MwLLKeyEscape;
|
if(wp == VK_ESCAPE) n = MwLLKeyEscape;
|
||||||
|
if(wp == VK_LSHIFT) n = MwLLKeyLeftShift;
|
||||||
|
if(wp == VK_RSHIFT) n = MwLLKeyRightShift;
|
||||||
if(n != -1) {
|
if(n != -1) {
|
||||||
if(msg == WM_KEYDOWN) {
|
if(msg == WM_KEYDOWN) {
|
||||||
MwLLDispatch(u->ll, key, &n);
|
MwLLDispatch(u->ll, key, &n);
|
||||||
|
|||||||
@@ -347,6 +347,10 @@ void MwLLNextEvent(MwLL handle) {
|
|||||||
n = MwLLKeyEnter;
|
n = MwLLKeyEnter;
|
||||||
} else if(strcmp(str, "Escape") == 0){
|
} else if(strcmp(str, "Escape") == 0){
|
||||||
n = MwLLKeyEscape;
|
n = MwLLKeyEscape;
|
||||||
|
}else if(strcmp(str, "Shift_L") == 0){
|
||||||
|
n = MwLLKeyLeftShift;
|
||||||
|
}else if(strcmp(str, "Shift_R") == 0){
|
||||||
|
n = MwLLKeyRightShift;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(n != -1) {
|
if(n != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user