Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sinister Zeta Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sinister Zeta
Sinister Zeta Project
Commits
13cda93e
Commit
13cda93e
authored
4 years ago
by
NikolaBabic
Browse files
Options
Downloads
Patches
Plain Diff
Added HotkeyRegistration and InputEmulator interfaces
parent
8e2577af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!32
Base system
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/model/HotkeyRegistration.java
+17
-0
17 additions, 0 deletions
src/model/HotkeyRegistration.java
src/model/InputEmulator.java
+10
-0
10 additions, 0 deletions
src/model/InputEmulator.java
with
27 additions
and
0 deletions
src/model/HotkeyRegistration.java
0 → 100644
+
17
−
0
View file @
13cda93e
package
model
;
public
interface
HotkeyRegistration
{
/**
* Registers a given hotkey.
* @param hotkey The hotkey to be registered. Must contain a unique ID.
* @return If the registration was successful.
*/
boolean
registerHotkey
(
Hotkey
hotkey
);
/**
* Unregisters a hotkey with the given id.
* @param id The id of the hotkey to be unregistered.
* @return If the unregistration was successful.
*/
boolean
unregisterHotkey
(
int
id
);
}
This diff is collapsed.
Click to expand it.
src/model/InputEmulator.java
0 → 100644
+
10
−
0
View file @
13cda93e
package
model
;
public
interface
InputEmulator
{
/**
* Sends a given key to be emulated.
* @param keyCode The virtual keycode of the key.
* @param release True if the key is to be a key release input.
*/
void
sendKey
(
int
keyCode
,
boolean
release
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment