Added support for local multiplayer

This commit is contained in:
Gliniak
2022-01-04 17:44:58 +01:00
parent 7977d7ab98
commit 17b30be56a
9 changed files with 132 additions and 56 deletions

View File

@@ -44,10 +44,15 @@ class InputSystem {
X_RESULT GetKeystroke(uint32_t user_index, uint32_t flags,
X_INPUT_KEYSTROKE* out_keystroke);
void UpdateUsedSlot(uint8_t slot, bool connected);
uint8_t GetConnectedSlots() const { return connected_slot; }
private:
xe::ui::Window* window_ = nullptr;
std::vector<std::unique_ptr<InputDriver>> drivers_;
uint8_t connected_slot = 0b0001;
};
} // namespace hid