Talk:Enums/JOYSTICK

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(Forget I said anything, I wasn't contributing)
Line 4: Line 4:
  
 
--[[User:NeatNit|NeatNit]] 10:14, 18 April 2017 (UTC)
 
--[[User:NeatNit|NeatNit]] 10:14, 18 April 2017 (UTC)
 
:Well from what I can see that's intended by Valve, they're defined [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/inputsystem/ButtonCode.h#L199-L224 here like this] so it's only fair the direct ENUM binding would be like this I suppose. --[[User:Jvs|Jvs]] 11:24, 18 April 2017 (UTC)
 
 
:Ok I can see why it's annoying, especially if someone uses the enums directly. --[[User:Jvs|Jvs]] 11:29, 18 April 2017 (UTC)
 

Revision as of 11:31, 18 April 2017

I just found out there's KEY_XBUTTON_*, KEY_XSTICK1_*, etc, which are actually joystick buttons (their numerical values are in the ranges laid out here). Would it be right to put these KEY enums in here? They would have to be removed from Enums/KEY if so.

KEY_COUNT doesn't include them and neither does KEY_LAST. This makes it fairly clear that they are intended to be JOYSTICK enums.

--NeatNit 10:14, 18 April 2017 (UTC)

Personal tools
Navigation