Skip to content

Commit 3b7c1bb

Browse files
committed
frontend: Add 'None' input device
1 parent 4f21ff1 commit 3b7c1bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/ui/settings.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,14 @@ void show_controller_slot(iris::instance* iris, int slot) {
483483
SetNextItemWidth(avail_width);
484484

485485
if (BeginCombo("##devicetype", name.c_str())) {
486+
if (Selectable("None")) {
487+
if (iris->input_devices[slot]) {
488+
delete iris->input_devices[slot];
489+
490+
iris->input_devices[slot] = nullptr;
491+
}
492+
}
493+
486494
if (Selectable("Keyboard")) {
487495
if (iris->input_devices[slot]) {
488496
delete iris->input_devices[slot];

0 commit comments

Comments
 (0)