InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

Prevent SDL layouts from being created if a layout already exists

Open jgcodes2020 opened this issue 3 months ago • 1 comments

Description

Unity's HID layout generator does not generate a layout if one already exists. I added this functionality to the Linux/SDL layout generator.

Changes made

Added a check to the SDL layout generator, preventing it from generating a layout if one exists already.

Checklist

Before review:

  • [ ] Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • FogBugz ticket attached, example ([case %number%](https://issuetracker.unity3d.com/issues/...)).
    • FogBugz is marked as "Resolved" with next release version correctly set.
  • [ ] Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • [ ] Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • [ ] Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

jgcodes2020 avatar May 12 '24 21:05 jgcodes2020