4th time asking this rather simple question

I know this is the wrong place to post this, in fact ive posted 4 times in like a months time, posted in answers twice, once in another fourm here, and once on a facebook group.

And for some reason this simple question that has no results with google search. So this is my last result posting here.

The question is quite simple, will -
If(Input.GetKeyDown(KeyCode.f)) work on all 3 platforms - pc, mac and linux? Or is it done differently for each platform.

(using f as example) -pretty much do keyboards work the same on all 3 platforms?.

Please this is very important. People who know me here know i don’t ask many questions. I know this question seems dumb but i don’t have a mac or linux to test this.

Thanks guys.

Yes. But I believe it is “F” not “f” though both may work (never tried lower case). Also, not sure how other Lang keyboards work.

I have never built for Linux so I can’t confirm it there, but yes it should act the same on all platforms.

Did you have a reason to suspect otherwise?

Just about ready to release something and dont wanna release something broke to non windows users because of a control mistake lol

Like wasnt sure if it would be some other way to call it eg -
if (LinuxInputDow(KeyCode.L)) just using slight differences. Everything says to use the Input Manager, but id rather just call the key directly. Not sure if the manager is what made it crossplatform with GetButton

Sorry on phone lol.

This seems more complicated that complex math lol
Sow how do i make sure it works on every keyboard?

Yeah, it works on Linux (both in the editor and in builds). I haven’t tried differentiated between upper and lower case - I tend to use buttons that I’ve defined in the InputManager and then let the player decide for themselves how to map the buttons on their keyboard to those buttons - but I don’t see why that should cause any problems.

@Philip-Rowlands

I am using “F” not “f” (I was on phone when I put that sorry) lol.

I’m not really to fond the the Input Manager, but just wasn’t sure if that was required for Crossplatform stuff Unity does.
So doing KeyCodes should work on on all 3 systems? Sweet, now I can release it without fear of it not working lol.

(I’m making an Application with Unity) so I’m only using the keyboard mainly for Hotkeys to get things done quicker.
It will hopefully be released today some time.

Not something I’d think many would be interested in using here unless you’re into playing the Violin lol.

@N1warhead_1 yeah, it should work perfectly fine.

@Philip-Rowlands - Appreciate it buddy.

I mean seriously - try to google this stuff, there’s literally no answers on it anywhere. I mean I guess that’s because it does work, but you can’t ever be to sure lol.

So I wanted to make sure lol.

You really should take the time to test at least once in every platform you plan to release on. Even if it’s just a case of getting a friend to download an alpha and try it out.

3 Likes

I would if I knew somebody.

You can install Linux on a bootable thumb drive to test it yourself.

2 Likes

…

Why are you stressed about publishing for platforms you have no customers for? Build a Windows version. Publish it. Wait for the first comment of “Please release a Mac version”. Email the guy that made that comment and ask him to be an alpha tester. And done.

2 Likes

I suppose you make a good point haha. That’s exactly what I’ll do actually!
Thanks man.