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
4edde339
Commit
4edde339
authored
4 years ago
by
Dallin Nickel (djn011)
Browse files
Options
Downloads
Patches
Plain Diff
Delete Modifier.java
parent
dace1b8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/model/Modifier.java
+0
-74
0 additions, 74 deletions
src/model/Modifier.java
with
0 additions
and
74 deletions
src/model/Modifier.java
deleted
100644 → 0
+
0
−
74
View file @
dace1b8d
package
model
;
public
enum
Modifier
{
NONE
(
0x0000
),
ALT
(
0x0001
),
CTRL
(
0x0002
),
/** Prevents key holding triggering multiple hotkey messages. */
NOREPEAT
(
0x4000
),
SHIFT
(
0x0004
),
WIN
(
0x0008
);
private
final
int
val
;
Modifier
(
int
val
)
{
this
.
val
=
val
;
}
/**
* Returns the Modifier integer value.
*/
public
int
val
()
{
return
val
;
}
/**
* Outputs the combined values of two different given modifiers.
*
* @return The combined values of the given modifiers.
* 0 if there are duplicate modifiers.
*/
public
int
combine
(
Modifier
m1
,
Modifier
m2
)
{
if
(
m1
==
m2
)
return
0
;
else
return
m1
.
val
()
+
m2
.
val
();
}
/**
* Outputs the combined values of the three different given modifiers.
* @return The combined values of the given modifiers.
* 0 if there are duplicate modifiers.
*/
public
int
combine
(
Modifier
m1
,
Modifier
m2
,
Modifier
m3
)
{
if
(
m1
==
m2
||
m1
==
m3
||
m2
==
m3
)
return
0
;
else
return
m1
.
val
()
+
m2
.
val
()
+
m3
.
val
();
}
/**
* Outputs the combined values of the four different given modifiers.
* @return The combined values of the given modifiers.
* 0 if there are duplicate modifiers.
*/
public
int
combine
(
Modifier
m1
,
Modifier
m2
,
Modifier
m3
,
Modifier
m4
)
{
if
(
m1
==
m2
||
m1
==
m3
||
m1
==
m4
||
m2
==
m3
||
m2
==
m4
||
m3
==
m4
)
return
0
;
else
return
m1
.
val
()
+
m2
.
val
()
+
m3
.
val
()
+
m4
.
val
();
}
/**
* Outputs the combined values of the five different given modifiers.
* @return The combined values of the given modifiers.
* 0 if there are duplicate modifiers.
*/
public
int
combine
(
Modifier
m1
,
Modifier
m2
,
Modifier
m3
,
Modifier
m4
,
Modifier
m5
)
{
if
(
m1
==
m2
||
m1
==
m3
||
m1
==
m4
||
m1
==
m5
||
m2
==
m3
||
m2
==
m4
||
m2
==
m5
||
m3
==
m4
||
m4
==
m5
)
return
0
;
else
return
m1
.
val
()
+
m2
.
val
()
+
m3
.
val
()
+
m4
.
val
()
+
m4
.
val
();
}
}
This diff is collapsed.
Click to expand it.
Nikola Babic (nab701)
@nab701
mentioned in commit
4709a051
·
4 years ago
mentioned in commit
4709a051
mentioned in commit 4709a0519f355ddc8eab1022e29d0e76c2eac917
Toggle commit list
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