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.

If you've read GamingOnLinux regularly, you will likely know how I am a big fan of SC Controller [GitHub]. It's a user-made driver and interface for using and mapping the Steam Controller. It's also now going under some major changes.

After previously noting how they weren't happy with certain issues surrounding Linux (like the Code of Conduct), the previous release was going to be the last for a while. Glad to see them back though, it's an incredibly useful tool.

So what's going on? Well, the developer "kozec" is rewriting large parts of SC Controller from Python to C with an aim to make it "much more portable" including Windows support and eventually Android.

For those interested, you can see the code on GitHub which is in a separate branch. They've also release version 0.4.9.1, which is the first rather experimental build with it using the new code.

Article taken from GamingOnLinux.com.
Tags: Drivers, Hardware
16 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.
See more from me
The comments on this article are closed.
19 comments
Page: 1/2»
  Go to:

M@GOid Nov 26, 2018
I'm glad to hear the developer is back in business. This is a piece of software that is very useful.

Now, since I'm not a programmer, somebody can explain how C will help with portability instead of Python?
Klaus Nov 26, 2018
Wait... How is porting it to C making it more portable? I thought using C requires more platform-specific code.


Last edited by Klaus on 26 November 2018 at 11:58 am UTC
Nanobang Nov 26, 2018
View PC info
  • Supporter
git muthafuckin' clone!

I hope this means Kozec-san has un-paused his Patreon payments, too. :)


Last edited by Nanobang on 26 November 2018 at 12:41 pm UTC
aluminumgriffin Nov 26, 2018
Quick thing about the C vs Python for being portable.
A python interpreter is a quite hefty penalty, and also there are C-compilers for _far_ more target-systems than there are platforms with python-interpreters.

Also, with C you basically "only" need to port the libs in use (with shims for everything you don't care about) when moving to an esoteric platform (this kinda was the purpose of C to begin with) while with Python you need to port the entire intepreter.

For a bit extreme case that still is easy to imagine - consider the case of an arduino (say, for an homebrew arcade machine). What would you find the easiest to do: port a C-program to fit into a couple of kB of memory, or try to wedge an entire interpreter in those same kB?

And as an aside, when working from another language it is a lot easier to interface with C than with Python (the former is often fairly automated as well as being common, not so about the latter).
Shmerl Nov 26, 2018
Rust would be better than C. That said, what about using upstream driver for Steam Controller instead of userspace USB hacks?


Last edited by Shmerl on 26 November 2018 at 12:42 pm UTC
Shmerl Nov 26, 2018
Quoting: GuestWhy?

Many reasons really. Here is one C developer putting it in more detail: https://dpc.pw/still-in-love-with-rust

I'd highlight this part:

QuoteI loved the simplicity and minimalism, I loved the flexibility and control, but I couldn't stand primitivism and lack of modern features.

That's exactly how I feel about C, when I work with it :) I'd take Rust over C any time.

To put it differently. If you need to support an existing project - fine. But if you are making a new one (like here switching to another language), don't start it in C or C++. Start it in Rust.


Last edited by Shmerl on 26 November 2018 at 1:02 pm UTC
Shmerl Nov 26, 2018
Quoting: GuestAh ok, a personal preference thing rather than a technical one.
On a technical level, C is a better choice here, for ease of cross-platform support on something that is lower level and may require kernel interaction. Pretty much everything is going to have a form of libc, and target platforms will have a lot of support (from compilers and build systems, to additional libraries that might be needed) already in C.

It's both and the reason for preference is technical, not simply one of taste. Rust can interact with kernel all the same by the way. Rust does depend on libc at present.

See https://github.com/rust-lang-nursery/portability-wg/issues/13

And an interesting example here: https://github.com/tsgates/rust.ko


Last edited by Shmerl on 26 November 2018 at 1:13 pm UTC
WorMzy Nov 26, 2018
Here's hoping the dev moves away from using GTK3.
kean Nov 26, 2018
Really nice, I am just about to get a steam controller
Shmerl Nov 26, 2018
Quoting: Guestand then advocating adding Rust dependencies on top doesn't sound like a good idea in this case. I just don't see a use case for Rust for this project's goals (or at least what I'm interpreting to be the goals).

Not any more than advocating for C in this case. If you think mixing languages is bad here, it's bad with C as well. But if you think rewrite is useful, Rust only has advantages over C, offering the same functionality.


Last edited by Shmerl on 26 November 2018 at 2:49 pm UTC
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!
The comments on this article are closed.
Buy Games
Buy games with our affiliate / partner links: