CHAPTER 5 Input Control © 2008 Cengage Learning EMEA.

Slides:



Advertisements
Similar presentations
1 Computer Graphics Chapter 2 Input Devices. RM[2]-2 Input Devices Logical Input Devices  Categorized based on functional characteristics.  Each device.
Advertisements

CHAPTER 16 Audio © 2008 Cengage Learning EMEA. LEARNING OBJECTIVES In this chapter you will learn about: – –The fundamentals of sound – –DirectX Audio.
Lesson 4 Alternative Methods Of Input.
Based on slides created by Edward Angel
Other Interaction Styles: Direct Manipulation, Haptic, Multimedia, Multimodal, Virtual Reality, Video Games Dr.s Barnes and Leventhal.
 At the end of this class, students are able to  Describe definition of input devices clearly  List out the examples of input devices  Describe.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
The Internal Components of a Personal Computer (PC)
Interactive Input Methods & Graphical User Input
CGMB214: Introduction to Computer Graphics
Input Devices. What is Input?  Everything we tell the computer is Input.
Developing the Game User Interface (UI) Lesson 5.
WHAT IS A GAME CONTROLLER a device used by games/entertainment systems or consoles to control a playable content provides the input data from user in.
1Computer Graphics Input and Interaction Lecture 8 John Shearer Culture Lab – space 2
Ray Bradley Karla N. Juárez David Wood Advisor: Dr. Stephen Murrell May 2 nd, 2005.
Computer Graphics I, Fall 2010 Input and Interaction.
CS 480/680 Computer Graphics Programming with Open GL Part 7: Input and Interaction Dr. Frederick C Harris, Jr. Fall 2011.
Virtual Reality Lecture2. Some VR Systems & Applications 고려대학교 그래픽스 연구실.
CHAPTER 5 Input Control © 2008 Cengage Learning EMEA.
Haptic technology, or haptics, is a tactile feedback technology that takes advantage of our sense of touch by applying forces, vibrations, and/or motions.
 In computing, an input device is a peripheral (piece of computer hardware equipment) used to provide data and control signals to an information processing.
Reference: The Game Loop Animation / Game loop 1. Update variables 2. [Get input from the user] (GameLoop only) 3. Draw (using variables)
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
1 Input and Interaction. 2 Objectives Introduce the basic input devices ­Physical Devices ­Logical Devices ­Input Modes Event-driven input Introduce double.
Haptic & Direct User Input with DirectInput ® 8 API Graphics Lab. Korea Univ.
University of New Mexico
GAM666 – Introduction To Game Programming ● DirectInput is the part of DirectX for managing input devices, such as keyboard, mouse and joystick ● Supports.
Introduction to Game Programming Pertemuan 11 Matakuliah: T0944-Game Design and Programming Tahun: 2010.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
What is Input?  Input  Processing  Output  Storage Everything we enter into the computer to do is Input.
CS320n –Visual Programming Execution Control with If / Else and Boolean Functions (Slides 6-2-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for.
Input Devices.
What is DirectX? DirectX is built by Microsoft as a collection of API’s (Application Programming Interfaces) for the purpose of multimedia processing.
Lesson 4 Alternative Methods Of Input.
Java Programming: From the Ground Up
Alternative Methods Of Input
Standard Methods of Input.
HAPTIC REALITY SYSTEMS
Input Devices and Output Devices
Integers/Characters Input/Output
INFORMATION TECHNOLOGY
TYPICAL INPUT DEVICES By Dajia Forbes 1c.
Interfacing.
GCSE COMPUTER SCIENCE Topic 4 - Computers
LECTURE Course Name: Computer Application
Linux Operating System Architecture
CSC461 Lecture 8: Input Devices
Lesson 4 Alternative Methods Of Input.
Introduction to Computer Graphics with WebGL
5 SYSTEM SOFTWARE CHAPTER
NBKeyboard: An Arm-based Word-gesture keyboard
Introduction to Computers
Chapter 6 System and Application Software
Interactive Input Methods & Graphical User Input
What is Input "Any data or instruction that is entered into a computer is called input". This data or instruction can come directly from end user or.
Isaac Gang University of Mary Hardin-Baylor
5 SYSTEM SOFTWARE CHAPTER
Input devices A piece of equipment that allows the user to give instructions and input data to the computer.
Input and Interaction Ed Angel
Interactive Input Methods & Graphical User Input
Lesson 4 Alternative Methods Of Input.
University of New Mexico
Input and Interaction Ed Angel
The Advancement of Game Device
Chapter 6 System and Application Software
Introduction to Computers
Chapter 6 System and Application Software
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Input and Interaction Ed Angel Professor Emeritus of Computer Science,
Chapter 6 System and Application Software
Presentation transcript:

CHAPTER 5 Input Control © 2008 Cengage Learning EMEA

LEARNING OBJECTIVES In this chapter you will learn about: Input devices Six classes of input DirectInput DirectInput device setup (keyboard, mouse or joystick) Creating a DirectInput object Creating a DirectInput device Setting the data format of a DirectInput device Setting the cooperative level of a DirectInput device Acquiring a DirectInput device Reading data from a DirectInput device Buffered and immediate data (keyboard, mouse or joystick) Action mapping The specification of actions Setting up an action map Applying an action map to physical devices Applying an action map to a device Retrieving action map data Force feedback Setting up a force feedback device Using effects XInput

INPUT DEVICES We classify physical input devices into two primary categories: keyboard devices pointing devices. The mouse is by far the most popular and commonly used pointing device. It generates two independent values converted by some API, device interface, or user program into positional data that can be interpreted as screen coordinates. This direct approach is, however, rarely used and these two independent values generated by the device are more commonly interpreted by the device driver as velocities.

INPUT DEVICES The main purpose behind using velocities, rather than distance values, lies with the desire to create a variable-sensitivity input device. Variable sensitivity refers to slow movements from rest resulting in nominal changes with rapid mouse movements leading to large changes in the cursor’s onscreen position.

INPUT DEVICES The mouse is referred to as a relative-positioning device. Absolute positioning provides a way of linking onscreen data with the device’s physical position. The joystick is another very important input device, especially to the world of computer gaming and simulations. In its simplest form we interpret the motion of its stick in both an x and a y direction. These values are then, just as with the mouse, translated into velocities and subsequently integrated into screen coordinates.

INPUT DEVICES

INPUT DEVICES

SIX CLASSES OF INPUT We can identify six classes of logical input devices: choice devices locator devices pick devices string devices stroke devices valuators.

DIRECTINPUT DirectInput is DirectX’s primary input processing API. It provides hardware-independent input control for keyboards, mice, joysticks, gamepads, steering wheels, flight yokes, space balls, paddles, etc. DirectInput’s hardware-independent nature can be attributed to the API interfacing directly with the device drivers.

DIRECTINPUT DirectInput is thus responsible for the processing of messages sent to and received from physical input devices.

DirectInput Device Setup (Keyboard, Mouse, or Joystick) Creating a DirectInput Object Creating a DirectInput Device Setting the Data Format of a DirectInput Device Setting the Cooperative Level of a DirectInput Device Acquiring the DirectInput Device Reading Data from a DirectInput Device [see the textbook and the DirectInput code samples on the book’s website for a complete discussion].

Device Data Buffered as an alternative to Immediate Keyboard Data Buffered as an Alternative to Immediate Mouse Data Buffered as an Alternative to Immediate Joystick Data [see the textbook and the DirectInput code samples on the book’s website for a complete discussion].

Action Mapping Action mapping eliminates the need for hard coded event-object mapping by binding events to virtual control objects Specifying the Actions Setting up the Action Map Applying an Action Map to Physical Devices Applying the Action Map to a Device Retrieving Action Map Data

Force Feedback Force feedback is an all-encompassing term used to describe input devices equipped with actuators, motors and resistance-inducing elements that are used for exerting vibration-based forces.

Force Feedback Setting up a Force Feedback Device Using Effects [see the textbook and the DirectInput Force Feedback code sample on the book’s website for a complete discussion].

XINPUT XInput, introduced with the release of the Xbox 360 gaming console, allows any computer running Windows XP SP1 or later to interface with an Xbox 360 controller. [see the textbook and the XInput code sample on the book’s website for a complete discussion].