-
Notifications
You must be signed in to change notification settings - Fork 111
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
rc: use new client from sdk #1618
Conversation
curStates.Menu = trunc(gamepad.buttons[16]!.value); | ||
// TODO(RSDK-881): this ought to detect actual controller mappings; for now | ||
// just try to not fail. | ||
curStates.X = trunc(gamepad.axes[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes!
@@ -1,5 +1,6 @@ | |||
<!-- eslint-disable require-atomic-updates --> | |||
<script setup lang="ts"> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this actually contains a lot of driveby bug fixes that improves RC reliability
@@ -0,0 +1,151 @@ | |||
/* | |||
Package main provides a utility to run a remote control only web server. It is configured with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this helps test RC against app
@@ -25,23 +25,26 @@ | |||
{{ else if eq .Env "development" }} | |||
<script type="module">window.PRIME_CONFIG = { base: '/static' }</script> | |||
{{ end }} | |||
|
|||
<script id="_timeout_worker" type="javascript/worker"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saving this for something special :)
@@ -280,7 +284,7 @@ onMounted(() => { | |||
class="mb-2" | |||
@keydown="handleKeyDown" | |||
@keyup="handleKeyUp" | |||
@toggle="(active: boolean) => !active && stop()" | |||
@toggle="(active: boolean) => { !active && (pressed.size > 0 || !stopped) && stop() }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more fixes for off focus
@@ -64,7 +65,7 @@ const relevantSubtypesForStatus = [ | |||
'input_controller', | |||
]; | |||
|
|||
const passwordInput = $ref<HTMLInputElement>(); | |||
const password = $ref<string>(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this helps password auth work again
@@ -481,10 +475,11 @@ const createConnectionManager = () => { | |||
|
|||
statuses.ops = true; | |||
} catch (error) { | |||
if (error instanceof ConnectionClosedError) { | |||
if (ConnectionClosedError.isError(error)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better errors
await fetchCurrentOps(); | ||
lastStatusTS = Date.now(); | ||
console.log('reconnected'); | ||
} catch (error) { | ||
console.error('failed to reconnect; retrying:', error); | ||
if (ConnectionClosedError.isError(error)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
less spam
return rawStatus[resourceNameToString(resource)]; | ||
}; | ||
|
||
const hasWebGamepad = () => { | ||
const filteredWebGamepads = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more gamepads
/> | ||
<div class="px-4 py-3"> | ||
<span>{{ authType }}: </span> | ||
<div class="w-96"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes auth again
|
No description provided.