firmware+controller: Add pregame state

This commit is contained in:
2024-12-15 13:57:31 +00:00
parent ea5f1a7902
commit 8adb89ef2b
6 changed files with 66 additions and 1 deletions

View File

@@ -19,7 +19,9 @@ def main():
h.queue_start(RiotPlayerInfo.dummy(
valorant=ValorantPlayerInfo(queue_type='unrated', is_party_owner=True)))
h.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(queue_type='premier-seasonmatch')))
h.pregame(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo(map='/Game/Maps/Bonsai/Bonsai')))
h.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo()))
h.pregame(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo()))
h.service()
finally:

View File

@@ -316,6 +316,9 @@ class HIDValconomyHandler(ValconomyHandler):
def match_found(self, info: RiotPlayerInfo):
self._enq(4, 1 if info.valorant.queue_type == 'premier-seasonmatch' else 0, fmt='B')
def pregame(self, info: RiotPlayerInfo):
self._enq(5, 1 if info.valorant.map == '/Game/Maps/Bonsai/Bonsai' else 0, fmt='B')
class GameState(Enum):
NONE = 0
MENU = 1