Wiki Page Content

Differences between revisions 11 and 12
Revision 11 as of 2011-09-12 19:28:49
Size: 1591
Editor: SheenaSmith
Comment: update content - add info about SDL_input.h
Revision 12 as of 2011-11-14 16:43:04
Size: 1886
Editor: SheenaSmith
Comment: add search exclusions for SG pages
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
##Remove this line and the ## below to use this markup if it becomes relevant to this category
##== Enumerations ==
##<<FullSearch(category:CategoryEnum CategoryMouse -SGEnumerations)>>

##== Structures ==
##<<FullSearch(category:CategoryStruct CategoryMouse -SGStructures)>>
Line 29: Line 36:

<<FullSearch(category:CategoryMouse -CategoryEnum -CategoryStruct)>>
<<FullSearch(category:CategoryMouse -CategoryEnum -CategoryStruct -SGFunctions)>>

DRAFT

Mouse Support

Include File(s): SDL_mouse.h

green

Introduction

This category contains functions for handling inputs from mice and other similar pointing devices, as well as some cursor management tasks.

Please note that this ONLY discusses "mice" with the notion of the desktop GUI. You (usually) have one system cursor, and the OS hides the hardware details from you. If you plug in 10 mice, all ten move that one cursor. For many applications and games this is perfect, and this API has served hundreds of SDL programs well since its birth.

It's not the whole picture, though. If you want more lowlevel control, SDL offers a different API that gives you visibility into each input device, multi-touch interfaces, etc.

The other API is in SDL_input.h. See Input Device Support for more.

Those two APIs are incompatible, and you usually should not use both at the same time. But for legacy purposes, this API refers to a "mouse" when it actually means the system pointer and not a physical mouse.

Functions


CategoryCategory

None: CategoryMouse (last edited 2013-10-12 19:22:45 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit