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.
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
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.
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.
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.
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.
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.