Trying to access input via externs
Monkey Targets Forums/XNA/Trying to access input via externs| 
 | ||
| Im trying to get access to the input variable in mojo.xna.cs, but having a hard time. This doesnt work: 
for( int i=0;i<512;++i ){
    gxtkApp.input.keyStates[i]&=0x100;
}
If I "hack" the mojo.xna.cs and make public gxtkInput input; to be public static gxtkInput input; it works... but I dont want to do this... is there another way? https://code.google.com/p/diddy/source/browse/trunk/src/diddy/native/diddy.xna.cs | 
| 
 | ||
| Would this work? gxtkApp.game.app.input.keyStates[i]&=0x100; Ill try it tonight... | 
| 
 | ||
| therevills, Yes - that does work. | 
| 
 | ||
| What does this do? |