GetPlayerInput (DECORATE)

From ZDoom Wiki
Jump to navigation Jump to search

int GetPlayerInput (int numinput [, int ptr ])

Usage

Behaves just like GetPlayerInput but measures a pointer instead. See article for more information.

Parameters

  • numinput: The identifier to check.
  • ptr_select: the pointer to examine. Default is AAPTR_DEFAULT. The function does nothing if the pointer is not a player (AAPTR_TARGET could be a player however, depending on circumstances. It doesn't necessarily have to be AAPTR_PLAYER#.) See actor pointers.

Return value

Returns the same results as GetPlayerInput, provided the pointer leads to a player.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.