Skip to content

Commit

Permalink
* Updated libtermkey binaries for Linux x86_64.
Browse files Browse the repository at this point in the history
  • Loading branch information
elw00d committed Mar 1, 2016
1 parent f8db9c6 commit dcce2dd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ConsoleFramework/ConsoleApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,14 @@ private void processLinuxInput (TermKeyKey key)
inputRecord.MouseEvent.dwMousePosition = new COORD((short) (col - 1), (short) (line - 1));
if (ev == TermKeyMouseEvent.TERMKEY_MOUSE_RELEASE) {
inputRecord.MouseEvent.dwButtonState = 0;
} else if (ev == TermKeyMouseEvent.TERMKEY_MOUSE_DRAG) {
inputRecord.MouseEvent.dwButtonState = MOUSE_BUTTON_STATE.FROM_LEFT_1ST_BUTTON_PRESSED;
} else if (ev == TermKeyMouseEvent.TERMKEY_MOUSE_PRESS) {
inputRecord.MouseEvent.dwButtonState = MOUSE_BUTTON_STATE.FROM_LEFT_1ST_BUTTON_PRESSED;
} else if (ev == TermKeyMouseEvent.TERMKEY_MOUSE_DRAG || ev == TermKeyMouseEvent.TERMKEY_MOUSE_PRESS) {
if (1 == button) {
inputRecord.MouseEvent.dwButtonState = MOUSE_BUTTON_STATE.FROM_LEFT_1ST_BUTTON_PRESSED;
} else if (2 == button) {
inputRecord.MouseEvent.dwButtonState = MOUSE_BUTTON_STATE.FROM_LEFT_2ND_BUTTON_PRESSED;
} else if (3 == button) {
inputRecord.MouseEvent.dwButtonState = MOUSE_BUTTON_STATE.RIGHTMOST_BUTTON_PRESSED;
}
}
//
processInputEvent(inputRecord);
Expand Down
Binary file removed native/libtermkey-0.17-x86-bin.zip
Binary file not shown.
Binary file removed native/libtermkey-0.17-x86_64-bin.zip
Binary file not shown.
Binary file removed native/libtermkey-0.17.tar.gz
Binary file not shown.
Binary file added native/libtermkey-0.18-x86_64.zip
Binary file not shown.
Binary file added native/libtermkey-0.18.tar.gz
Binary file not shown.

0 comments on commit dcce2dd

Please sign in to comment.