Every article tag can be clicked to get a list of all articles in that category. Every article tag also has an RSS feed! You can customize an RSS feed too!
We do often include affiliate links to earn us some pennies. See more here.

ControllerImage provides easy on-screen prompts for game developers

By - | Views: 27,007

Developer and game porter Ryan "Icculus" Gordon has created a new library named ControllerImage for game developers, with an aim to help showing on-screen controller prompts

Built on top of the popular SDL, specifically SDL 3, the idea is game developers would use this to show things like "Press *controller button* to open" type of prompts in-game. No matter what controller, it would be able to show the right prompt, as long as SDL knows what that controller is.

As written in the Patreon post:

Something that's been bothering me for awhile is how SDL handles game controllers: you plug in darn near anything, and it can figure out what to do with it, so the developer can assume the player is using an Xbox controller even if the actual gamepad is built by Sony or Nintendo. It can sort it out whether it's a first-party controller you paid 70 bucks for, or it's something totally anonymous, bought for a few yuan at a chinese street market.

But all SDL does is say "I know this controller, here's where its equivalent of the Xbox Y button is" to the programmer, and not "I know this controller, here's what it looks like" to the player.

I set out to change that.

This is a dirt-simple library that builds on SDL's ability to detect joysticks, to provide scalable images of its buttons and other features, so you can show users instructions that match the controller in their hand, even for controllers you've never heard of, and for screen resolutions that don't exist yet.

YouTube Thumbnail
YouTube videos require cookies, you must accept their cookies to view. View cookie preferences.
Accept Cookies & Show   Direct Link

The project is on GitHub. You can support Ryan "Icculus" Gordon on Patreon.

Article taken from GamingOnLinux.com.
19 Likes
About the author -
author picture
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly came back to check on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly. Find me on Mastodon.
See more from me
11 comments
Page: «2/2
  Go to:

CatKiller Dec 7, 2023
View PC info
  • Supporter Plus
Quoting: MarlockValve should just hire Ryan to do his thing
My impression (which could be wide of the mark) is that that wouldn't be appealing to either party.

Hiring talented people to work on broadly whatever they want is their general MO, but those people are then Valve employees doing things for Valve. It's not a sponsorship deal like you'd get for, say, Linus or Greg, where they're supported for being an ecosystem treasure. They do sometimes do consultancy contracts where someone is paid to do a particular thing for them - I think Ethan Lee had one of those, as well as folks like Collabora.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.