Skip to content

Commit c9fdec0

Browse files
authored
Merge pull request #194 from cortex-command-community/multi-mouse-keyboard
SDL3 + Multi mouse keyboard
2 parents 394855b + 87843b9 commit c9fdec0

File tree

4,165 files changed

+1175635
-817653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,165 files changed

+1175635
-817653
lines changed

.github/workflows/meson.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
macosx-deployment-target:
3737
type: string
3838
required: false
39-
default: "10.15"
39+
default: "11.1"
4040

4141
# Triggers the workflow when called by a top-level workflow
4242
workflow_call:
@@ -63,7 +63,7 @@ on:
6363
macosx-deployment-target:
6464
type: string
6565
required: false
66-
default: "10.15"
66+
default: "11.1"
6767

6868
jobs:
6969
build-linux:
@@ -178,7 +178,7 @@ jobs:
178178
echo "::group::Installing pkg-config"
179179
sudo apt install pkg-config
180180
echo "::group::Installing mac deps"
181-
omp install libsdl2 libsdl2_image onetbb lz4 libpng minizip luajit flac
181+
omp install SDL3 onetbb lz4 libpng minizip luajit flac
182182
echo "OSXCROSS_PKG_CONFIG_PATH=${{env.OSXCROSS_TARGET}}/macports/pkgs/opt/local/libexec/onetbb/lib/pkgconfig" >> $GITHUB_ENV
183183
echo "::endgroup::"
184184
echo "::group::Installing meson"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
compile_commands.json
1414
**/.ccls-cache
15+
**/.cache
1516

1617
**/build*
1718

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
122122
```
123123
Original bindings with no scale argument are untouched and can be called as they were.
124124

125+
- Added multiseat support for multiple mice and keyboards on one computer.
126+
127+
- Added optional player argument to all `UInputMan:Key*` Lua Methods. (e.g. `KeyHeld(keycode, player)`) This allows checking individual player's keyboards, when multiple keyboards are available.
128+
125129
</details>
126130

127131
<details><summary><b>Changed</b></summary>
@@ -176,6 +180,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
176180

177181
- Various performance improvements.
178182

183+
- Drop support for macOS < 11.1 (Big Sur) :(
184+
185+
- Updated SDL2 to SDL3
186+
179187
</details>
180188

181189
<details><summary><b>Fixed</b></summary>

Data/Base.rte/GUIs/SettingsGUI.ini

Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,47 @@ Anchor = Left, Top
933933
Text = Square
934934
Checked = False
935935

936+
[CollectionBoxP1KeyboardMouseSelect]
937+
ControlType = COLLECTIONBOX
938+
Parent = BoxP1Controls
939+
X = 263
940+
Y = 25
941+
Width = 195
942+
Height = 20
943+
Visible = True
944+
Enabled = True
945+
Name = CollectionBoxP1KeyboardMouseSelect
946+
Anchor = Left, Top
947+
DrawBackground = False
948+
DrawType = Color
949+
DrawColor = 0
950+
951+
[ButtonP1KeyboardSelect]
952+
ControlType = BUTTON
953+
Parent = CollectionBoxP1KeyboardMouseSelect
954+
X = 7
955+
Y = 0
956+
Width = 85
957+
Height = 18
958+
Visible = True
959+
Enabled = True
960+
Name = ButtonP1KeyboardSelect
961+
Anchor = Left, Top
962+
Text = Set Keyboard
963+
964+
[ButtonP1MouseSelect]
965+
ControlType = BUTTON
966+
Parent = CollectionBoxP1KeyboardMouseSelect
967+
X = 102
968+
Y = 0
969+
Width = 85
970+
Height = 18
971+
Visible = True
972+
Enabled = True
973+
Name = ButtonP1MouseSelect
974+
Anchor = Left, Top
975+
Text = Set Mouse
976+
936977
[BoxP2Controls]
937978
ControlType = COLLECTIONBOX
938979
Parent = CollectionBoxInputSettings
@@ -1120,6 +1161,47 @@ Anchor = Left, Top
11201161
Text = Square
11211162
Checked = False
11221163

1164+
[CollectionBoxP2KeyboardMouseSelect]
1165+
ControlType = COLLECTIONBOX
1166+
Parent = BoxP2Controls
1167+
X = 263
1168+
Y = 25
1169+
Width = 195
1170+
Height = 20
1171+
Visible = True
1172+
Enabled = True
1173+
Name = CollectionBoxP2KeyboardMouseSelect
1174+
Anchor = Left, Top
1175+
DrawBackground = False
1176+
DrawType = Color
1177+
DrawColor = 0
1178+
1179+
[ButtonP2KeyboardSelect]
1180+
ControlType = BUTTON
1181+
Parent = CollectionBoxP2KeyboardMouseSelect
1182+
X = 7
1183+
Y = 0
1184+
Width = 85
1185+
Height = 18
1186+
Visible = True
1187+
Enabled = True
1188+
Name = ButtonP2KeyboardSelect
1189+
Anchor = Left, Top
1190+
Text = Set Keyboard
1191+
1192+
[ButtonP2MouseSelect]
1193+
ControlType = BUTTON
1194+
Parent = CollectionBoxP2KeyboardMouseSelect
1195+
X = 102
1196+
Y = 0
1197+
Width = 85
1198+
Height = 18
1199+
Visible = True
1200+
Enabled = True
1201+
Name = ButtonP2MouseSelect
1202+
Anchor = Left, Top
1203+
Text = Set Mouse
1204+
11231205
[BoxP3Controls]
11241206
ControlType = COLLECTIONBOX
11251207
Parent = CollectionBoxInputSettings
@@ -1307,6 +1389,47 @@ Anchor = Left, Top
13071389
Text = Square
13081390
Checked = False
13091391

1392+
[CollectionBoxP3KeyboardMouseSelect]
1393+
ControlType = COLLECTIONBOX
1394+
Parent = BoxP3Controls
1395+
X = 263
1396+
Y = 25
1397+
Width = 195
1398+
Height = 20
1399+
Visible = True
1400+
Enabled = True
1401+
Name = CollectionBoxP3KeyboardMouseSelect
1402+
Anchor = Left, Top
1403+
DrawBackground = False
1404+
DrawType = Color
1405+
DrawColor = 0
1406+
1407+
[ButtonP3KeyboardSelect]
1408+
ControlType = BUTTON
1409+
Parent = CollectionBoxP3KeyboardMouseSelect
1410+
X = 7
1411+
Y = 0
1412+
Width = 85
1413+
Height = 18
1414+
Visible = True
1415+
Enabled = True
1416+
Name = ButtonP3KeyboardSelect
1417+
Anchor = Left, Top
1418+
Text = Set Keyboard
1419+
1420+
[ButtonP3MouseSelect]
1421+
ControlType = BUTTON
1422+
Parent = CollectionBoxP3KeyboardMouseSelect
1423+
X = 102
1424+
Y = 0
1425+
Width = 85
1426+
Height = 18
1427+
Visible = True
1428+
Enabled = True
1429+
Name = ButtonP3MouseSelect
1430+
Anchor = Left, Top
1431+
Text = Set Mouse
1432+
13101433
[BoxP4Controls]
13111434
ControlType = COLLECTIONBOX
13121435
Parent = CollectionBoxInputSettings
@@ -1494,6 +1617,47 @@ Anchor = Left, Top
14941617
Text = Square
14951618
Checked = False
14961619

1620+
[CollectionBoxP4KeyboardMouseSelect]
1621+
ControlType = COLLECTIONBOX
1622+
Parent = BoxP4Controls
1623+
X = 263
1624+
Y = 25
1625+
Width = 195
1626+
Height = 20
1627+
Visible = True
1628+
Enabled = True
1629+
Name = CollectionBoxP4KeyboardMouseSelect
1630+
Anchor = Left, Top
1631+
DrawBackground = False
1632+
DrawType = Color
1633+
DrawColor = 0
1634+
1635+
[ButtonP4KeyboardSelect]
1636+
ControlType = BUTTON
1637+
Parent = CollectionBoxP4KeyboardMouseSelect
1638+
X = 7
1639+
Y = 0
1640+
Width = 85
1641+
Height = 18
1642+
Visible = True
1643+
Enabled = True
1644+
Name = ButtonP4KeyboardSelect
1645+
Anchor = Left, Top
1646+
Text = Set Keyboard
1647+
1648+
[ButtonP4MouseSelect]
1649+
ControlType = BUTTON
1650+
Parent = CollectionBoxP4KeyboardMouseSelect
1651+
X = 102
1652+
Y = 0
1653+
Width = 85
1654+
Height = 18
1655+
Visible = True
1656+
Enabled = True
1657+
Name = ButtonP4MouseSelect
1658+
Anchor = Left, Top
1659+
Text = Set Mouse
1660+
14971661
[CollectionBoxPlayerInputMapping]
14981662
ControlType = COLLECTIONBOX
14991663
Parent = CollectionBoxInputSettings
@@ -2642,6 +2806,70 @@ Anchor = Left, Top
26422806
ToolTip = None
26432807
Text = [InputKey]
26442808

2809+
[CollectionBoxDeviceCapture]
2810+
ControlType = COLLECTIONBOX
2811+
Parent = root
2812+
X = 110
2813+
Y = 70
2814+
Width = 260
2815+
Height = 100
2816+
Visible = False
2817+
Enabled = False
2818+
Name = CollectionBoxDeviceCapture
2819+
Anchor = Left, Top
2820+
ToolTip = None
2821+
DrawBackground = True
2822+
DrawType = Image
2823+
DrawColor = 0
2824+
2825+
[LabelDeviceCaptureInstruction1]
2826+
ControlType = LABEL
2827+
Parent = CollectionBoxDeviceCapture
2828+
X = 10
2829+
Y = 30
2830+
Width = 240
2831+
Height = 20
2832+
Visible = True
2833+
Enabled = True
2834+
Name = LabelDeviceCaptureInstruction1
2835+
Anchor = Left, Top
2836+
ToolTip = None
2837+
Text = Press any key on the device you want to use.
2838+
HAlignment = centre
2839+
VAlignment = middle
2840+
2841+
[LabelDeviceCaptureInstruction2]
2842+
ControlType = LABEL
2843+
Parent = CollectionBoxDeviceCapture
2844+
X = 10
2845+
Y = 50
2846+
Width = 240
2847+
Height = 20
2848+
Visible = True
2849+
Enabled = True
2850+
Name = LabelDeviceCaptureInstruction2
2851+
Anchor = Left, Top
2852+
ToolTip = None
2853+
Text = Press ESC to cancel device mapping.
2854+
HAlignment = centre
2855+
VAlignment = middle
2856+
2857+
[LabelDeviceCaptureInstruction3]
2858+
ControlType = LABEL
2859+
Parent = CollectionBoxDeviceCapture
2860+
X = 10
2861+
Y = 70
2862+
Width = 240
2863+
Height = 20
2864+
Visible = True
2865+
Enabled = True
2866+
Name = LabelDeviceCaptureInstruction3
2867+
Anchor = Left, Top
2868+
ToolTip = None
2869+
Text = Press DELETE to remove existing mapping.
2870+
HAlignment = centre
2871+
VAlignment = middle
2872+
26452873
[CollectionBoxInputCapture]
26462874
ControlType = COLLECTIONBOX
26472875
Parent = root

0 commit comments

Comments
 (0)