Skip to content

Common SDL3 stringToClipboard, bring Linux mouse control in line with Windows - #747

Merged
mcarans merged 4 commits into
OoliteProject:masterfrom
mcarans:more_common_functions
Sep 23, 2026
Merged

mcarans merged 4 commits into
OoliteProject:masterfrom
mcarans:more_common_functions

Conversation

@mcarans

@mcarans mcarans commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Info page of OXP copies url using stringToClipboard - that now is an SDL3 version used by both Windows and Linux (new function for Linux)
Make Linux mouse control same as Windows
Linux calls common isRunningOnPrimaryDisplayDevice function

@mcarans mcarans changed the title Bring Linux mouse control in line with Windows Common SDL3 stringToClipboard, bring Linux mouse control in line with Windows Sep 20, 2026
@mcarans

mcarans commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

@phkb Only change for Windows is SDL3 stringToClipboard used when you go to OXP Manager, choose and OXP and press i to get the info page: the url is copied to your clipboard. Please check that works for you.

@oocube Linux also does the OXP url copying above. Please also check mouse control works for you and mouse is grabbed in window (windowed not full screen)
ie. add these to oolite.plist and run Oolite. When flying press SHIFT-M:

    mouse-control-in-windowed-mode = 1;
    grab-mouse-on-mouse-control = 1;

@phkb phkb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works fine on Windows.

@mcarans
mcarans force-pushed the more_common_functions branch from b86827b to fccf1c2 Compare September 20, 2026 04:17
phkb
phkb previously approved these changes Sep 20, 2026

@phkb phkb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Still good from my end.

@mcarans

mcarans commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

@oocube Please confirm works ok for you.

@mcarans

mcarans commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

@phkb @LW-archlinux @oocube As per this request, I made it so the OXP URL is only copied when pressing lowercase c in the OXP list or info screens on both Windows and Linux.

Comment thread Resources/Config/descriptions.plist Outdated
Comment thread Resources/Config/descriptions.plist Outdated
@mcarans

mcarans commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

@phkb I've made requested changes

@mcarans
mcarans merged commit 54cf49a into OoliteProject:master Sep 23, 2026
12 checks passed
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