-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Fix cross compilation for linux x64
+ Update typings + Cleanup repository
- Loading branch information
wilix-lead
committed
Feb 15, 2018
1 parent
eade978
commit 959de2b
Showing
11 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ build | |
prebuilds | ||
builds | ||
*.DS_Store | ||
electron-example/.DS_Store | ||
examples/electron-example/.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
CMakeFiles/ | ||
libuiohook/ | ||
build/ | ||
electron-example | ||
examples/electron-example | ||
prebuilds/ | ||
builds/ | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ matrix: | |
include: | ||
- os: linux | ||
env: ARCH=x32 | ||
- os: linux | ||
env: ARCH=x64 | ||
- os: osx | ||
|
||
node_js: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,67 @@ | ||
import { EventEmitter } from 'events' | ||
|
||
declare class IOHook extends EventEmitter { | ||
/** | ||
* Native module for hooking keyboard and mouse events | ||
*/ | ||
declare class IOHook extends EventEmitter<IOHookEvent> { | ||
/** | ||
* Start hooking engine. Call it when you ready to receive events | ||
* @param {boolean} enableLogger If true, module will publish debug information to stdout | ||
*/ | ||
start(enableLogger: boolean): void | ||
|
||
/** | ||
* Stop rising keyboard/mouse events | ||
*/ | ||
stop(): void | ||
|
||
/** | ||
* Manual native code load. Call this function only if unload called before | ||
*/ | ||
load(): void | ||
|
||
/** | ||
* Unload native code and free memory and system hooks | ||
*/ | ||
unload(): void | ||
|
||
/** | ||
* Enable/Disable stdout debug | ||
* @param {boolean} mode | ||
*/ | ||
setDebug(mode: boolean): void | ||
|
||
/** | ||
* Register global shortcut. When all keys in keys array pressed, callback will be called | ||
* @param {Array<string|number>} keys Array of keycodes | ||
* @param {Function} callback Callback for call when shortcut pressed | ||
* @return {number} ShortcutId for unregister | ||
*/ | ||
registerShortcut(keys, callback): number | ||
|
||
/** | ||
* Unregister shortcut by ShortcutId | ||
* @param shortcutId | ||
*/ | ||
unregisterShortcut(shortcutId): void | ||
|
||
/** | ||
* Unregister all shortcuts | ||
*/ | ||
unregisterAllShortcuts(): void | ||
} | ||
|
||
declare interface IOHookEvent { | ||
type: string | ||
keychar?: number | ||
keycode?: number | ||
rawcode?: number | ||
button?: number | ||
clicks?: number | ||
x?: number | ||
y?: number | ||
} | ||
|
||
declare const iohook: IOHook | ||
declare const iohook: IOHook; | ||
|
||
export = iohook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.