This document discusses processing mouse button input in XNA games. It covers how to detect when a mouse button is pressed or clicked, and that mice typically have 2-5 buttons. The next module will cover using an Xbox 360 controller for game input.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
47 views7 pages
XNA Mouse Button Processing
This document discusses processing mouse button input in XNA games. It covers how to detect when a mouse button is pressed or clicked, and that mice typically have 2-5 buttons. The next module will cover using an Xbox 360 controller for game input.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7
Module 8
XNA Mice and Controllers
Lecture XNA Mouse Button Processing
Module 8 Learning Objectives
Last time we learned how to use the mouse location in our XNA games In this lecture, well learn how to process a mouse button in our XNA games
In-Lecture Quiz
How many buttons does a mouse have?
A: -1 B: 5 C: it depends how stressed it is D: 42
In-Lecture Quiz
An enumeration
A: defines a new number like spluzonk B: defines a data type with a specific set of values C: defines a way to clamp variable values D: defines the boundaries of a plot of land
In-Lecture Quiz
A mouse button click is the same as a mouse button press
Recap We showed how we can use process mouse buttons in our XNA games Thats all the mouse input processing well cover Next Time Well start using a 360 controller for input in our XNA games