-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
msx80
committed
Sep 15, 2024
1 parent
1f68936
commit 12e88d5
Showing
6 changed files
with
72 additions
and
4 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
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
23 changes: 23 additions & 0 deletions
23
...omicron-engine/src/main/java/com/github/msx80/omicron/plugins/builtin/PlatformPlugin.java
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.msx80.omicron.plugins.builtin; | ||
|
||
import com.badlogic.gdx.Gdx; | ||
import com.github.msx80.omicron.HardwareInterface; | ||
import com.github.msx80.omicron.HardwarePlugin; | ||
|
||
public class PlatformPlugin implements HardwarePlugin { | ||
|
||
@Override | ||
public void init(HardwareInterface hw) { | ||
|
||
} | ||
|
||
@Override | ||
public Object exec(String command, Object params) { | ||
if("PLATFORM".equals(command)) | ||
{ | ||
return Gdx.app.getType().toString().toUpperCase(); | ||
} | ||
return "ERR: command not found"; | ||
} | ||
|
||
} |
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