firmware+controller: Add game start and over states
This commit is contained in:
@@ -23,6 +23,9 @@ def main():
|
||||
h.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo()))
|
||||
h.pregame(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo()))
|
||||
h.game_generic(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(queue_type='ggteam')))
|
||||
h.game_start(None)
|
||||
h.game_over(None, False)
|
||||
h.game_over(None, True)
|
||||
|
||||
h.service()
|
||||
finally:
|
||||
|
@@ -337,6 +337,12 @@ class HIDValconomyHandler(ValconomyHandler):
|
||||
|
||||
self._enq(6, gm, fmt='B')
|
||||
|
||||
def game_start(self, info: RiotPlayerInfo):
|
||||
self._enq(7)
|
||||
|
||||
def game_over(self, info: RiotPlayerInfo, won: bool):
|
||||
self._enq(8, 1 if won else 0, fmt='B')
|
||||
|
||||
class GameState(Enum):
|
||||
NONE = 0
|
||||
MENU = 1
|
||||
|
Reference in New Issue
Block a user