-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.moaxcp.x11.examples; | ||
|
||
import com.github.moaxcp.x11.keysym.KeySym; | ||
import com.github.moaxcp.x11.x11client.X11Client; | ||
import lombok.extern.java.Log; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
@Log | ||
public class KeySymMain { | ||
|
||
public static void main(String... args) throws IOException { | ||
try(X11Client client = X11Client.connect()) { | ||
List<Byte> keyCodes = client.keySymToKeyCodes(KeySym.XK_Escape); | ||
for(byte keyCode : keyCodes) { | ||
KeySym keySym = client.keyCodeToKeySym(keyCode, (short) 0); | ||
log.info(keySym.toString()); | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@SuppressWarnings("module") | ||
module com.github.moaxcp.x11.examples { | ||
exports com.github.moaxcp.x11.examples; | ||
|
||
requires transitive com.github.moaxcp.x11.client; | ||
requires transitive com.github.moaxcp.x11.xephyr; | ||
requires transitive com.github.moaxcp.x11.toolkit; | ||
requires transitive com.github.moaxcp.x11.keysym; | ||
requires transitive java.logging; | ||
|
||
requires static lombok; | ||
} |