Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 7 8 9 10 11 … 18 Next »
input._KEY_* problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
input._KEY_* problem
25-06-2017, 04:39 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: input._KEY_* problem
It's not doing what you think it's doing.

Both the KEY_* and IN_* values are numbers. In the case of the IN_*, it's actually powers of 2 which are used as a bitflag to check for keys pressed. Thus when you pass KEY_W in (whose value is 33), you're actually checking if either input 1 (primary attack) or input 32 (use button) are down.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
input._KEY_* problem - by The17thDoctor - 24-06-2017, 11:24 PM
RE: input._KEY_* problem - by TheOneAndOnlyTee - 24-06-2017, 11:37 PM
RE: input._KEY_* problem - by Person8880 - 25-06-2017, 10:07 AM
RE: input._KEY_* problem - by The17thDoctor - 25-06-2017, 11:36 AM
RE: input._KEY_* problem - by 4N0NYM - 25-06-2017, 03:56 PM
RE: input._KEY_* problem - by Person8880 - 25-06-2017, 04:39 PM
RE: input._KEY_* problem - by 4N0NYM - 25-06-2017, 05:53 PM
RE: input._KEY_* problem - by Person8880 - 25-06-2017, 07:42 PM
RE: input._KEY_* problem - by Kosmos - 26-06-2017, 01:14 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.