Skip to content

Input - Minor Pointer refactor and documentation updates #1283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2014

Conversation

pnstickne
Copy link
Contributor

  • pointerN are aliases to backed pointers[N-1] array.
    This simplifies (and increases the efficiency of) looping through all the pointers when applicable; also eliminates pointer-existance checks
    Removes various hard-coded limits (added MAX_POINTERS); changed maxPointers default
  • Removed some special-casing from cases where it did not matter
  • Removed === false/true, == usage for consistency, changed missing value check to typeof, etc.
  • Updated documentation for specificty; added @public\@protected
  • @deprecated currentPointers due to odd set pattern; totalCurrentPointers is more appropriate.

- `pointerN` are aliases to backed `pointers[N-1]` array.
  This simplifies (and increases the efficiency of) looping through all the pointers when applicable; also eliminates pointer-existance checks
  Removes various hard-coded limits (added MAX_POINTERS); changed `maxPointers` default
- Removed some special-casing from cases where it did not matter
- Removed `=== false/true`, `==` usage for consistency, changed missing value check to `typeof`, etc.
- Updated documentation for specificty; added `@public\@protected`
- `@deprecated` currentPointers due to odd set pattern; `totalCurrentPointers` is more appropriate.
photonstorm added a commit that referenced this pull request Nov 2, 2014
Input - Minor Pointer refactor and documentation updates
@photonstorm photonstorm merged commit a4870a7 into phaserjs:dev Nov 2, 2014
photonstorm added a commit that referenced this pull request Nov 2, 2014
…ecifically:

    * pointerN are aliases to backed pointers[N-1] array. This simplifies (and increases the efficiency of) looping through all the pointers when applicable; also eliminates pointer-existance checks Removes various hard-coded limits (added MAX_POINTERS); changed maxPointers default
    * Removed some special-casing from cases where it did not matter
    * Removed === false/true, == usage for consistency, changed missing value check to typeof, etc.
    * Updated documentation for specificty; added @public\@Protected
    * @deprecated currentPointers due to odd set pattern; totalCurrentPointers is more appropriate.
(thanks @pnstickne #1283)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants