Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge in from dev #322

Merged
merged 148 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
f39f849
Added 2.4GHz to Ping Map
UhOhDonovan Mar 26, 2023
e480fda
Merge branch 'dev' into enhancement/pingmap-2_4GHz
ThisIsBrady Apr 25, 2023
ba86fa8
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Jul 10, 2023
e323a95
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 19, 2023
759e60a
Bump electron from 18.3.7 to 22.3.25
dependabot[bot] Oct 5, 2023
366b375
Bump @babel/traverse from 7.18.9 to 7.23.2
dependabot[bot] Oct 17, 2023
70826a8
Reset controller inputs when disconnected
KyleN29 Oct 18, 2023
31f9012
Fixed S&T Logo in README
wiidler Oct 19, 2023
aa244de
Try again?
wiidler Oct 19, 2023
a86c12e
Third time's the charm
wiidler Oct 19, 2023
ee5e360
added lines for future reference
wiidler Oct 21, 2023
4eca7ec
Merge pull request #264 from MissouriMRDT/quickfix/physical-sliders
wiidler Oct 21, 2023
4683e66
Merge branch 'dev' into dependabot/npm_and_yarn/electron-22.3.25
wiidler Oct 21, 2023
05db07b
Issue with electro library, ignored
wiidler Oct 21, 2023
ba3be87
Merge pull request #253 from MissouriMRDT/dependabot/npm_and_yarn/ele…
wiidler Oct 21, 2023
ffc63bd
Merge remote-tracking branch 'origin/dev' into dependabot/npm_and_yar…
wiidler Oct 21, 2023
d63211a
Merge pull request #259 from MissouriMRDT/dependabot/npm_and_yarn/bab…
wiidler Oct 21, 2023
08bac1b
Merge pull request #261 from MissouriMRDT/README-quickfix
wiidler Oct 21, 2023
e5787ab
Merge remote-tracking branch 'origin/dev' into enhancement/pingmap-2_…
wiidler Oct 21, 2023
fd3db97
Merge pull request #235 from MissouriMRDT/enhancement/pingmap-2_4GHz
wiidler Oct 21, 2023
c89c580
Merge remote-tracking branch 'origin/dev' into dependabot/npm_and_yar…
wiidler Oct 21, 2023
6094b5a
Addressed unit test issues
wiidler Oct 21, 2023
0e9969e
Merge pull request #249 from MissouriMRDT/dependabot/npm_and_yarn/wor…
wiidler Oct 21, 2023
d9ea9a3
Merge remote-tracking branch 'origin/dev' into dependabot/npm_and_yar…
wiidler Oct 21, 2023
89bfb40
Merge pull request #248 from MissouriMRDT/dependabot/npm_and_yarn/sem…
wiidler Oct 21, 2023
a0a9808
Created dependabot.yml
wiidler Oct 21, 2023
2ad0461
moved dependabot.yml
wiidler Oct 21, 2023
b1f867e
Updated dependabot.yml
wiidler Oct 21, 2023
5b8d9ca
added brackets
wiidler Oct 21, 2023
8561ab2
Let's try that again
wiidler Oct 21, 2023
4bf53d3
Merge pull request #265 from MissouriMRDT/feature/reimplement-dependabot
wiidler Oct 21, 2023
222e4b2
Bump core-js from 3.23.5 to 3.33.1
dependabot[bot] Oct 21, 2023
15999c4
Bump @babel/plugin-proposal-logical-assignment-operators
dependabot[bot] Oct 21, 2023
901d547
Bump electron-builder from 22.14.13 to 24.6.4
dependabot[bot] Oct 21, 2023
35a50bc
Bump @babel/plugin-proposal-optional-chaining from 7.18.9 to 7.21.0
dependabot[bot] Oct 21, 2023
8e54a6b
Bump eslint-config-prettier from 8.5.0 to 9.0.0
dependabot[bot] Oct 21, 2023
f50d469
Update test.yml
Byrdman32 Oct 21, 2023
0c9915b
Merge pull request #272 from MissouriMRDT/topic/update-actions
wiidler Oct 21, 2023
5d8d8c6
Bump actions/setup-node from 1 to 3
dependabot[bot] Oct 21, 2023
36d7f56
Merge branch 'dev' into dependabot/npm_and_yarn/babel/plugin-proposal…
wiidler Oct 21, 2023
2653ce1
Merge branch 'dev' into dependabot/npm_and_yarn/electron-builder-24.6.4
wiidler Oct 21, 2023
a554f62
Merge branch 'dev' into dependabot/npm_and_yarn/babel/plugin-proposal…
wiidler Oct 21, 2023
4d6fc5e
Merge branch 'dev' into dependabot/npm_and_yarn/core-js-3.33.1
wiidler Oct 21, 2023
eceb3bf
Merge branch 'dev' into dependabot/npm_and_yarn/eslint-config-prettie…
wiidler Oct 21, 2023
4865f39
Merge pull request #266 from MissouriMRDT/dependabot/github_actions/a…
wiidler Oct 21, 2023
f0e76ce
Merge branch 'dev' into dependabot/npm_and_yarn/eslint-config-prettie…
wiidler Oct 21, 2023
084efce
Merge pull request #271 from MissouriMRDT/dependabot/npm_and_yarn/esl…
wiidler Oct 21, 2023
b6b0e37
Merge branch 'dev' into dependabot/npm_and_yarn/babel/plugin-proposal…
wiidler Oct 21, 2023
cd5246e
Merge pull request #270 from MissouriMRDT/dependabot/npm_and_yarn/bab…
wiidler Oct 21, 2023
d880469
Merge remote-tracking branch 'origin/dev' into dependabot/npm_and_yar…
wiidler Oct 21, 2023
e07ad45
Merge pull request #269 from MissouriMRDT/dependabot/npm_and_yarn/ele…
wiidler Oct 21, 2023
766bf65
Merge branch 'dev' into dependabot/npm_and_yarn/core-js-3.33.1
wiidler Oct 21, 2023
59ffa6b
Merge pull request #267 from MissouriMRDT/dependabot/npm_and_yarn/cor…
wiidler Oct 21, 2023
bd935c9
Merge branch 'dev' into dependabot/npm_and_yarn/babel/plugin-proposal…
wiidler Oct 21, 2023
c3411ce
Merge remote-tracking branch 'origin/dev' into dependabot/npm_and_yar…
wiidler Oct 21, 2023
f3be697
Merge branch 'dependabot/npm_and_yarn/babel/plugin-proposal-logical-a…
wiidler Oct 21, 2023
f4c7da9
Merge pull request #268 from MissouriMRDT/dependabot/npm_and_yarn/bab…
wiidler Oct 21, 2023
326387d
Implemented loader-utils-2.0
wiidler Oct 21, 2023
9671fc0
Bump terser-webpack-plugin from 5.3.3 to 5.3.9
dependabot[bot] Oct 23, 2023
dad7b8b
Bump actions/setup-node from 3 to 4
dependabot[bot] Oct 23, 2023
89464d0
Merge pull request #274 from MissouriMRDT/dependabot/npm_and_yarn/ter…
wiidler Oct 24, 2023
0519364
Merge branch 'dev' into dependabot/github_actions/actions/setup-node-4
wiidler Oct 24, 2023
572dfb4
Bump @types/react-color from 3.0.6 to 3.0.9
dependabot[bot] Oct 24, 2023
84d104a
Bump enzyme-adapter-react-16 and @types/enzyme-adapter-react-16
dependabot[bot] Oct 24, 2023
7506943
Merge pull request #279 from MissouriMRDT/dependabot/github_actions/a…
wiidler Oct 24, 2023
aba9218
Merge branch 'dev' into dependabot/npm_and_yarn/types/react-color-3.0.9
wiidler Oct 24, 2023
7a5a0a6
Merge pull request #277 from MissouriMRDT/dependabot/npm_and_yarn/typ…
wiidler Oct 24, 2023
cf9c8c4
Merge branch 'dev' into dependabot/npm_and_yarn/enzyme-adapter-react-…
wiidler Oct 24, 2023
9325f74
Merge pull request #278 from MissouriMRDT/dependabot/npm_and_yarn/enz…
wiidler Oct 24, 2023
2004d19
Bump eslint-config-airbnb-typescript from 12.3.1 to 14.0.2
dependabot[bot] Oct 24, 2023
e45886a
addressed errors in linter
wiidler Oct 24, 2023
f492d75
removed tsc-ignore with fix
wiidler Oct 24, 2023
b06ebda
Merge pull request #275 from MissouriMRDT/dependabot/npm_and_yarn/esl…
wiidler Oct 24, 2023
bf7af2f
Merge remote-tracking branch 'origin/dev' into security/implemented-l…
wiidler Oct 24, 2023
710a4d3
addressed issue, testing
wiidler Oct 24, 2023
e37817c
Merge remote-tracking branch 'origin/dev' into enhancement/controller…
KyleN29 Oct 24, 2023
5dfb02f
addressed issue this should pass
wiidler Oct 24, 2023
b3e51b3
Merge pull request #287 from MissouriMRDT/286-fix-code-scanning-alert…
Byrdman32 Oct 24, 2023
d457844
Formatted main.prod.js
wiidler Oct 25, 2023
87488c4
Merge pull request #289 from MissouriMRDT/288-fix-code-scanning-alert…
wiidler Oct 25, 2023
1b65620
Merge branch 'dev' into security/implemented-loader-utils-2.0
wiidler Oct 25, 2023
4988505
Merge pull request #273 from MissouriMRDT/security/implemented-loader…
wiidler Oct 25, 2023
3b0d30a
Bump loader-utils from 2.0.2 to 2.0.4
dependabot[bot] Oct 25, 2023
195a833
Merge pull request #291 from MissouriMRDT/dependabot/npm_and_yarn/loa…
wiidler Oct 25, 2023
62b71a7
Bump detect-port from 1.3.0 to 1.5.1
dependabot[bot] Oct 25, 2023
b4f2fb7
Merge pull request #281 from MissouriMRDT/dependabot/npm_and_yarn/det…
wiidler Oct 25, 2023
58f2047
Updated to 3.2.1 for more security alerts
wiidler Oct 25, 2023
ee68ab7
Merge branch 'dev' into dependabot/npm_and_yarn/loader-utils-2.0.4
wiidler Oct 25, 2023
a8aa992
Merge pull request #292 from MissouriMRDT/dependabot/npm_and_yarn/loa…
wiidler Oct 25, 2023
0018897
Bump css-loader from 5.2.7 to 6.8.1
dependabot[bot] Oct 25, 2023
10e9a13
Merge pull request #283 from MissouriMRDT/dependabot/npm_and_yarn/css…
wiidler Oct 25, 2023
4149ae6
Bump browserslist-config-erb from 0.0.1 to 0.0.3
dependabot[bot] Oct 25, 2023
06a2490
Merge pull request #282 from MissouriMRDT/dependabot/npm_and_yarn/bro…
wiidler Oct 25, 2023
4e56809
Bump husky from 4.3.8 to 8.0.3
dependabot[bot] Oct 25, 2023
bc1779e
Bump eslint-plugin-jest from 24.7.0 to 27.6.0
dependabot[bot] Oct 27, 2023
88ae031
Merge pull request #297 from MissouriMRDT/dependabot/npm_and_yarn/esl…
wiidler Nov 2, 2023
1629371
Merge branch 'dev' into dependabot/npm_and_yarn/husky-8.0.3
wiidler Nov 2, 2023
9da1d47
Bump webpack-merge from 5.8.0 to 5.10.0
dependabot[bot] Nov 2, 2023
7391c70
Bump lint-staged from 10.5.4 to 15.0.2
dependabot[bot] Nov 2, 2023
7f08a19
Merge pull request #295 from MissouriMRDT/dependabot/npm_and_yarn/hus…
wiidler Nov 2, 2023
5467475
Merge branch 'dev' into dependabot/npm_and_yarn/webpack-merge-5.10.0
wiidler Nov 2, 2023
58c64aa
Bump lint-staged from 10.5.4 to 15.0.2
dependabot[bot] Nov 2, 2023
304a0b5
merge conflicts addressed
wiidler Nov 2, 2023
bc6816a
merge conflicts fixed again?
wiidler Nov 2, 2023
d7b9832
Turn button off when controller disconnected
KyleN29 Nov 3, 2023
8cc1086
Bump @babel/preset-typescript from 7.18.6 to 7.23.2
dependabot[bot] Nov 3, 2023
be06778
Bump electron-log from 4.4.8 to 5.0.0
dependabot[bot] Nov 3, 2023
802f052
Expanded controller disconnect detection to all Xbox configs
KyleN29 Nov 8, 2023
9f3ef3a
Merge branch 'dev' into enhancement/controller-disconnect-detection
KyleN29 Nov 8, 2023
8d42194
Lint fixes
KyleN29 Nov 8, 2023
21f8962
Merge pull request #300 from MissouriMRDT/enhancement/controller-disc…
UhOhDonovan Nov 9, 2023
985f95b
Merge branch 'dev' into dependabot/npm_and_yarn/electron-log-5.0.0
wiidler Nov 9, 2023
546565b
Merge pull request #299 from MissouriMRDT/dependabot/npm_and_yarn/ele…
wiidler Nov 9, 2023
7edce6a
Merge branch 'dev' into dependabot/npm_and_yarn/babel/preset-typescri…
wiidler Nov 9, 2023
6d354da
Merge pull request #298 from MissouriMRDT/dependabot/npm_and_yarn/bab…
wiidler Nov 9, 2023
6cacca8
Merge branch 'dev' into dependabot/npm_and_yarn/webpack-merge-5.10.0
wiidler Nov 9, 2023
65ca5bf
Merge pull request #294 from MissouriMRDT/dependabot/npm_and_yarn/web…
wiidler Nov 9, 2023
9fe0a3c
Merge branch 'dev' into dependabot/npm_and_yarn/lint-staged-15.0.2
wiidler Nov 9, 2023
482cfa9
upgraded to 18
wiidler Nov 9, 2023
3a2c249
Merge pull request #302 from MissouriMRDT/feature/upgrade-node-to-v18
wiidler Nov 9, 2023
9e0dc5a
Merge branch 'dev' into dependabot/npm_and_yarn/lint-staged-15.0.2
wiidler Nov 9, 2023
193a885
Merge pull request #276 from MissouriMRDT/dependabot/npm_and_yarn/lin…
wiidler Nov 9, 2023
1dab0f6
Bump webpack from 5.76.0 to 5.89.0
dependabot[bot] Nov 9, 2023
b70b52c
Bump electron-notarize from 1.2.1 to 1.2.2
dependabot[bot] Nov 9, 2023
5823f1f
Merge pull request #303 from MissouriMRDT/dependabot/npm_and_yarn/web…
wiidler Nov 9, 2023
94bb969
Merge branch 'dev' into dependabot/npm_and_yarn/electron-notarize-1.2.2
wiidler Nov 9, 2023
2ee8a0f
Bump eslint-import-resolver-webpack from 0.13.2 to 0.13.8
dependabot[bot] Nov 9, 2023
3538919
Merge pull request #306 from MissouriMRDT/dependabot/npm_and_yarn/ele…
wiidler Nov 9, 2023
3e3adc2
Merge branch 'dev' into dependabot/npm_and_yarn/eslint-import-resolve…
wiidler Nov 9, 2023
197272e
Merge pull request #304 from MissouriMRDT/dependabot/npm_and_yarn/esl…
wiidler Nov 10, 2023
46109f6
Bump concurrently from 6.5.1 to 8.2.2
dependabot[bot] Nov 10, 2023
5e8eb33
Merge pull request #309 from MissouriMRDT/dependabot/npm_and_yarn/con…
wiidler Nov 16, 2023
c00d57e
Bump @babel/plugin-proposal-function-bind from 7.18.9 to 7.23.3
dependabot[bot] Nov 16, 2023
9cb3c79
Bump actions/upload-artifact from 3 to 4
dependabot[bot] Dec 14, 2023
8f4fdbd
Merge pull request #311 from MissouriMRDT/dependabot/github_actions/a…
wiidler Dec 25, 2023
5de461a
Merge branch 'dev' into dependabot/npm_and_yarn/babel/plugin-proposal…
wiidler Dec 25, 2023
cde2cc0
Bump follow-redirects from 1.15.1 to 1.15.5
dependabot[bot] Jan 12, 2024
f48151a
Merge pull request #310 from MissouriMRDT/dependabot/npm_and_yarn/bab…
wiidler Jan 17, 2024
141a426
Merge branch 'dev' into dependabot/npm_and_yarn/follow-redirects-1.15.5
wiidler Jan 17, 2024
9718bd3
Merge pull request #314 from MissouriMRDT/dependabot/npm_and_yarn/fol…
wiidler Jan 17, 2024
91f79bb
Bump style-loader from 2.0.0 to 3.3.4
dependabot[bot] Jan 17, 2024
d1cf0cb
Bump @types/halogenium from 2.3.1 to 2.3.4
dependabot[bot] Jan 17, 2024
e43d527
Merge pull request #313 from MissouriMRDT/dependabot/npm_and_yarn/sty…
wiidler Jan 24, 2024
1b3349a
Merge branch 'dev' into dependabot/npm_and_yarn/types/halogenium-2.3.4
wiidler Jan 24, 2024
4d37296
Bump @types/leaflet from 1.7.11 to 1.9.8
dependabot[bot] Jan 24, 2024
89ed63a
Merge pull request #315 from MissouriMRDT/dependabot/npm_and_yarn/typ…
wiidler Jan 24, 2024
6b810eb
Merge branch 'dev' into dependabot/npm_and_yarn/types/leaflet-1.9.8
wiidler Jan 24, 2024
315eb8f
Merge pull request #316 from MissouriMRDT/dependabot/npm_and_yarn/typ…
wiidler Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ module.exports = {
'prettier/prettier': 'error',
'react/static-property-placement': ['warn', 'static public field'],
'@typescript-eslint/no-empty-interface': 'off',
// eslint-disable-next-line no-dupe-keys
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'@typescript-eslint/naming-convention': [
'error',
{
Expand All @@ -41,7 +48,7 @@ module.exports = {
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
},
plugins: ['react', '@typescript-eslint', 'prettier'],
plugins: ['react', '@typescript-eslint', 'prettier', 'import'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
Expand Down
103 changes: 103 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
version: 2
updates:
- labels: [dependencies]
package-ecosystem: npm
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: bundler
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: composer
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: maven
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: mix
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: cargo
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: gradle
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: nuget
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: gomod
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: docker
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: elm
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: gitsubmodule
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: pip
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: terraform
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: pub
directory: /
schedule:
interval: daily

- labels: [dependencies]
package-ecosystem: swift
directory: /
schedule:
interval: daily
6 changes: 3 additions & 3 deletions .github/workflows/deploy_basestation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest] # Possible values: [ubuntu-latest, windows-latest, macOS-latest]
node: [16.x]
node: [18.x]

runs-on: ${{ matrix.os }}

Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Create Artifact
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: RED.${{ github.ref_name }}
path: |
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ permissions:
packages: read
id-token: write

concurrency:
group: 'test'
cancel-in-progress: false

jobs:
test:
strategy:
Expand All @@ -34,9 +30,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- name: Install Dependencies
run: yarn install --frozen-lockfile --network-timeout 300000
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[Mars Rover Design Team](https://marsrover.mst.edu/)

<img alt="MS&T Logo" src="https://brand.mst.edu/media/universityadvancement/communications/images/logos/logo/Logo_356.jpg" width="15%" />
<img alt="MS&T Logo" src="https://brand.mst.edu/media/universityadvancement/brand/logos/Missouri-S&T_PrimaryLogo_Forest_RGB.png" width="15%" />

[Missouri University of Science and Technology](https://www.mst.edu/)

Expand Down
31,200 changes: 31,199 additions & 1 deletion internals/RED/main.prod.js

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@
"@babel/plugin-proposal-do-expressions": "^7.16.0",
"@babel/plugin-proposal-export-default-from": "^7.16.0",
"@babel/plugin-proposal-export-namespace-from": "^7.16.0",
"@babel/plugin-proposal-function-bind": "^7.16.0",
"@babel/plugin-proposal-function-bind": "^7.23.3",
"@babel/plugin-proposal-function-sent": "^7.16.0",
"@babel/plugin-proposal-json-strings": "^7.16.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.20.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-proposal-pipeline-operator": "^7.16.0",
"@babel/plugin-proposal-throw-expressions": "^7.16.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
Expand All @@ -160,23 +160,23 @@
"@babel/plugin-transform-runtime": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/preset-typescript": "^7.23.2",
"@babel/register": "^7.16.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.1",
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.7",
"@types/double-ended-queue": "^2.1.1",
"@types/enzyme": "^3.10.10",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/halogenium": "^2.3.1",
"@types/enzyme-adapter-react-16": "^1.0.8",
"@types/halogenium": "^2.3.4",
"@types/history": "4.7.6",
"@types/jest": "^26.0.15",
"@types/leaflet": "^1.7.5",
"@types/leaflet": "^1.9.8",
"@types/node": "14.14.10",
"@types/react": "^16.14.20",
"@types/react-beautiful-dnd": "^13.1.2",
"@types/react-color": "^3.0.6",
"@types/react-color": "^3.0.9",
"@types/react-dom": "^16.9.14",
"@types/react-router-dom": "^5.3.2",
"@types/react-test-renderer": "^16.9.5",
Expand All @@ -190,41 +190,41 @@
"babel-loader": "^8.2.3",
"babel-plugin-dev-expression": "^0.2.3",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"browserslist-config-erb": "^0.0.1",
"browserslist-config-erb": "^0.0.3",
"chalk": "^4.1.2",
"concurrently": "^6.4.0",
"core-js": "^3.19.1",
"concurrently": "^8.2.2",
"core-js": "^3.33.1",
"cross-env": "^7.0.3",
"css-loader": "^5.2.7",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^1.3.0",
"detect-port": "^1.3.0",
"electron": "^18.3.7",
"electron-builder": "^22.13.1",
"detect-port": "^1.5.1",
"electron": "^22.3.25",
"electron-builder": "^24.6.4",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.1.1",
"electron-notarize": "^1.2.2",
"electron-rebuild": "^2.3.5",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"enzyme-adapter-react-16": "^1.15.7",
"enzyme-to-json": "^3.6.2",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-airbnb-typescript": "^14.0.2",
"eslint-config-erb": "^4.0.0-alpha.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-compat": "^3.13.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-prettier": "^4.2.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-react": "^7.27.0",
"eslint-plugin-react-hooks": "^4.3.0",
"file-loader": "^6.0.0",
"husky": "^4.3.8",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.1.0",
"lint-staged": "^10.5.4",
"lint-staged": "^15.0.2",
"mini-css-extract-plugin": "^1.6.2",
"opencollective-postinstall": "^2.0.3",
"prettier": "^2.4.1",
Expand All @@ -233,28 +233,29 @@
"rimraf": "^3.0.0",
"sass-loader": "^10.2.0",
"stl-viewer": "^0.12.0",
"style-loader": "^2.0.0",
"terser-webpack-plugin": "^5.2.5",
"style-loader": "^3.3.4",
"terser-webpack-plugin": "^5.3.9",
"typescript": "^4.4.4",
"url-loader": "^4.1.0",
"webpack": "^5.76.0",
"webpack": "^5.89.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.3",
"webpack-merge": "^5.8.0",
"webpack-merge": "^5.10.0",
"yarn-deduplicate": "^3.1.0"
},
"dependencies": {
"ansi-regex": "^6.0.1",
"double-ended-queue": "^2.1.0-0",
"electron-db": "^0.15.7",
"electron-debug": "^3.1.0",
"electron-log": "^4.4.1",
"electron-log": "^5.0.0",
"electron-updater": "^4.3.9",
"follow-redirects": "^1.14.8",
"follow-redirects": "^1.15.5",
"halogenium": "^2.3.0",
"history": "^5.1.0",
"html2canvas": "^1.3.2",
"loader-utils": "^3.2.1",
"localforage": "^1.10.0",
"node-fetch": "^3.2.10",
"react": "^17.0.2",
Expand Down
38 changes: 38 additions & 0 deletions src/Core/components/ControlScheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ function controller(passedScheme: any, pos: any): any {
}
}
}
if (navigator.getGamepads()[index] == null && passedScheme !== '') {
for (const button in CONTROLLERINPUT[passedScheme].bindings) {
controllerInputs[button] = 0;
}
}
}, 50);
}

Expand Down Expand Up @@ -405,6 +410,39 @@ class ControlScheme extends Component<IProps, IState> {
<button style={{ zIndex: 1 }} type="button" onClick={() => this.buttonToggle(config)}>
{this.state.functionality[config].toggled}
</button>
{window.addEventListener('gamepaddisconnected', (e) => {
if (
this.state.functionality[config].toggled === 'On' &&
this.state.functionality[config].controller === 'Xbox 1' &&
e.gamepad.index === 0
) {
this.buttonToggle(config);
} else if (
this.state.functionality[config].toggled === 'On' &&
this.state.functionality[config].controller === 'Xbox 2' &&
e.gamepad.index === 1
) {
this.buttonToggle(config);
} else if (
this.state.functionality[config].toggled === 'On' &&
this.state.functionality[config].controller === 'Xbox 3' &&
e.gamepad.index === 2
) {
this.buttonToggle(config);
} else if (
this.state.functionality[config].toggled === 'On' &&
this.state.functionality[config].controller === 'Xbox 4' &&
e.gamepad.index === 3
) {
this.buttonToggle(config);
} else if (
this.state.functionality[config].toggled === 'On' &&
this.state.functionality[config].controller === 'Flight Stick' &&
e.gamepad.index === 4
) {
this.buttonToggle(config);
}
})}
</div>
);
})}
Expand Down
Loading
Loading