ControlMapper: Change the callbacks to be more suitable for the upcoming refactor. (#17209)

* ControlMapper: Change the callbacks to be more suitable for the upcoming refactor.

* SetAllButtons: Separate bits to set and bits to clear.

* Oops, missed committing some files somehow
This commit is contained in:
Henrik Rydgård 2023-03-30 10:47:28 +02:00 committed by GitHub
parent d65afcc7f0
commit 26bf40c497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 171 additions and 182 deletions

View file

@ -1,10 +1,11 @@
#include <algorithm>
#include "UI/JoystickHistoryView.h"
#include "Common/UI/Context.h"
#include "Common/UI/UI.h"
// From ControlMapper.h
void ConvertAnalogStick(float &x, float &y);
#include "Core/ControlMapper.h"
void JoystickHistoryView::Draw(UIContext &dc) {
const AtlasImage *image = dc.Draw()->GetAtlas()->getImage(ImageID("I_CROSS"));