-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
game menu: show input device game menu options
- Loading branch information
Karim Mreisi
committed
Feb 15, 2023
1 parent
c9fe96a
commit 7c71b57
Showing
6 changed files
with
66 additions
and
59 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
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/limelight/binding/input/GameInputDevice.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,16 @@ | ||
package com.limelight.binding.input; | ||
|
||
import com.limelight.GameMenu; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Generic Input Device | ||
*/ | ||
public interface GameInputDevice { | ||
|
||
/** | ||
* @return list of device specific game menu options, e.g. configure a controller's mouse mode | ||
*/ | ||
List<GameMenu.MenuOption> getGameMenuOptions(); | ||
} |
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,9 @@ | ||
package com.limelight.ui; | ||
|
||
import com.limelight.binding.input.GameInputDevice; | ||
|
||
public interface GameGestures { | ||
void toggleKeyboard(); | ||
|
||
void showGameMenu(); | ||
void showGameMenu(GameInputDevice device); | ||
} |
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