Talk:Enums/JOYSTICK

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
(OTOH it's rude of me to undelete your message, sorry)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
--[[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)
+
: [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/public/inputsystem/ButtonCode.h#L199-L224 relevant source code], thanks to [[User:Jvs|Jvs]]. --[[User:NeatNit|NeatNit]] 12:14, 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)
+

Latest revision as of 12:14, 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)

relevant source code, thanks to Jvs. --NeatNit 12:14, 18 April 2017 (UTC)
Personal tools
Navigation