home | login | register | DMCA | contacts | help | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


my bookshelf | genres | recommend | rating of books | rating of authors | reviews | new | | collections | | | add
fantasy
space fantasy
fantasy is horrors
heroic
prose
  military
  child
  russian
detective
  action
  child
  ironical
  historical
  political
western
adventure
adventure (child)
child's stories
love
religion
antique
Scientific literature
biography
business
home pets
animals
art
history
computers
linguistics
mathematics
religion
home_garden
sport
technique
publicism
philosophy
chemistry
close

Loading...


Cleaning up

Here is a simple function that will unacquire the mouse and keyboard and clean up the Direct Input related pointers. This is called from the destructor of our CGame class as part of the games clean up process.

void CGame::CleanUpDirectInput() {

if (m_pKeyboard) {

m_pKeyboard->Unacquire();

}

if (m_pMouse) {

m_pMouse->Unacquire();

}

SafeRelease(m_pMouse);

SafeRelease(m_pKeyboard);

SafeRelease(m_pDirectInput);

}

So now we have an Earth that you can control.

DirectX 8 Programming Tutorial


Using the data | DirectX 8 Programming Tutorial | Summary







Loading...