firmware+controller: Add match found state

This commit is contained in:
2024-12-15 12:05:36 +00:00
parent 18831c3e0e
commit ea5f1a7902
6 changed files with 64 additions and 7 deletions

View File

@@ -18,6 +18,8 @@ def main():
h.idle(None)
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.match_found(RiotPlayerInfo.dummy(valorant=ValorantPlayerInfo()))
h.service()
finally:

View File

@@ -313,6 +313,9 @@ class HIDValconomyHandler(ValconomyHandler):
ms_not_comp = info.valorant.is_party_owner and info.valorant.queue_type == 'unrated'
self._enq(3, 1 if ms_not_comp else 0, fmt='B')
def match_found(self, info: RiotPlayerInfo):
self._enq(4, 1 if info.valorant.queue_type == 'premier-seasonmatch' else 0, fmt='B')
class GameState(Enum):
NONE = 0
MENU = 1