Malgidus / csharpgameprogramming

Automatically exported from code.google.com/p/csharpgameprogramming
0 stars 0 forks source link

Object reference error #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. After entering _menu.handleinput(); in the startmenustate.cs file
2.
3.

What is the expected output? What do you see instead?
Expected output is the start menu state running with the start and exit buttons 
displayed, but all I get is a black screen then an error on the float invertY = 
_input.Controller.LeftControlStick.Y*-1; line

What version of the product are you using? On what operating system?
Bought the book, love it.  just having problems with that error and cant figure 
what im doing wrong.  Running windows 8 developer preview with vs2010 express.  
Also tried importing into monodevelop and after fixing some minor stuff to work 
on fedora 15, still get the same error

Please provide any additional information below.
New to c#, and really want to learn more.  Ive checked out other forums, but 
can't seem to fix the problem.

Original issue reported on code.google.com by olsonfam...@gmail.com on 26 Jan 2012 at 11:25

GoogleCodeExporter commented 9 years ago
I just removed all of the references to the xbox controller in the input class, 
the vertical menu, and the start menu, and everything works just fine now.  
Obviously I have something wrong in one of the xbox controller classes. Any 
reason why it wouldn't work on windows 8? 

Original comment by olsonfam...@gmail.com on 27 Jan 2012 at 4:37