j
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@401 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
599b1ee0c8
commit
15e604f711
3 changed files with 9 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ enum MwLLKeyEnum {
|
|||
MwLLKeyUp,
|
||||
MwLLKeyDown,
|
||||
MwLLKeyEnter,
|
||||
MwLLKeyEscape
|
||||
MwLLKeyEscape,
|
||||
MwLLKeyLeftShift,
|
||||
MwLLKeyRightShift
|
||||
};
|
||||
|
||||
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_BACK) n = MwLLKeyBackSpace;
|
||||
if(wp == VK_ESCAPE) n = MwLLKeyEscape;
|
||||
if(wp == VK_LSHIFT) n = MwLLKeyLeftShift;
|
||||
if(wp == VK_RSHIFT) n = MwLLKeyRightShift;
|
||||
if(n != -1) {
|
||||
if(msg == WM_KEYDOWN) {
|
||||
MwLLDispatch(u->ll, key, &n);
|
||||
|
|
|
|||
|
|
@ -347,6 +347,10 @@ void MwLLNextEvent(MwLL handle) {
|
|||
n = MwLLKeyEnter;
|
||||
} else if(strcmp(str, "Escape") == 0){
|
||||
n = MwLLKeyEscape;
|
||||
}else if(strcmp(str, "Shift_L") == 0){
|
||||
n = MwLLKeyLeftShift;
|
||||
}else if(strcmp(str, "Shift_R") == 0){
|
||||
n = MwLLKeyRightShift;
|
||||
}
|
||||
|
||||
if(n != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue