Skip to content

Added gamepad input keyboard actions#5

Open
skymen wants to merge 6 commits intoCynToolkit:mainfrom
skymen:main
Open

Added gamepad input keyboard actions#5
skymen wants to merge 6 commits intoCynToolkit:mainfrom
skymen:main

Conversation

@skymen
Copy link
Contributor

@skymen skymen commented Mar 24, 2026

This is still being tested. Will confirm when this is working as expected

- Add ShowGamepadTextInput action with input mode, line mode, description, max characters, and existing text parameters
- Add ShowFloatingGamepadTextInput action with keyboard mode, x, y, width, and height parameters
- Implement both actions with proper error handling and triggers
- Add conditions and expressions for both actions
- Added ShowGamepadTextInput and ShowFloatingGamepadTextInput actions
- Resolved conflicts with upstream Friends API additions
- Both Friends and Gamepad features now coexist
@skymen skymen marked this pull request as draft March 24, 2026 18:35
@skymen skymen marked this pull request as ready for review March 25, 2026 02:32
}, this.unsupportedEngine)

// Steam Gamepad Text Input
_ShowGamepadTextInputBase = this.wrap(super._ShowGamepadTextInput, async (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ShowGamepadTextInputBase = this.wrap(super._ShowGamepadTextInput, async (
_ShowGamepadTextInput = this.wrap(super._ShowGamepadTextInput, async (

_ShowGamepadTextInput = this._ShowGamepadTextInputBase
_ShowGamepadTextInputSync = this._ShowGamepadTextInputBase

_ShowFloatingGamepadTextInputBase = this.wrap(super._ShowFloatingGamepadTextInput, async (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ShowFloatingGamepadTextInputBase = this.wrap(super._ShowFloatingGamepadTextInput, async (
_ShowFloatingGamepadTextInput = this.wrap(super._ShowFloatingGamepadTextInput, async (

Comment on lines +2701 to +2702
_ShowFloatingGamepadTextInput = this._ShowFloatingGamepadTextInputBase
_ShowFloatingGamepadTextInputSync = this._ShowFloatingGamepadTextInputBase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ShowFloatingGamepadTextInput = this._ShowFloatingGamepadTextInputBase
_ShowFloatingGamepadTextInputSync = this._ShowFloatingGamepadTextInputBase

Comment on lines +2658 to +2659
_ShowGamepadTextInput = this._ShowGamepadTextInputBase
_ShowGamepadTextInputSync = this._ShowGamepadTextInputBase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_ShowGamepadTextInput = this._ShowGamepadTextInputBase
_ShowGamepadTextInputSync = this._ShowGamepadTextInputBase

{
id: 'existingText',
desc: "Optional existing text to pre-fill in the input (leave empty for none)",
name: "Existing Text",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't "Default value" a more standard label ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants