Talk:Enums/JOYSTICK

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(KEY_ enums that are actually joystick enums)
 
(Response about KEY_XBUTTON)
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)

Revision as of 11:24, 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)

Well from what I can see that's intended by Valve, they're defined here like this so it's only fair the direct ENUM binding would be like this I suppose. --Jvs 11:24, 18 April 2017 (UTC)
Personal tools
Navigation