Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

For my game I want to give the user full control. I am writing a hangman game where the user has the option of pressing the 'X' key on the keyboard to disable the keyboard driver completely, and 'G' to disable the graphics card.

You can re-enable by left-clicking the screen, but thus far I have found no ways of doing this, or tutorials, not even questions!

Can someone point me in the direction here? Thanks.

share|improve this question

closed as off topic by Byte56, Sean Middleditch, Maik Semder, Josh Petrie, Nicol Bolas Jan 5 '13 at 8:47

Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Your game will segfault on the next driver call, unless you bloat up each method to check if the card still exists (based on your other question I'm assuming you're not using DirectX or OpenGL). It's like trying to put a check in your game for a power outage, you can't really do anything about it. –  Robert Rouhani Dec 31 '12 at 23:22
1  
Voting to close as off topic. This isn't directly related to game development and you'd probably get a better answer at superuser.stackexchange.com. –  Byte56 Jan 1 '13 at 15:52

1 Answer 1

As this is for testing, I'd suggest getting the tester to do it manually through device manager in the windows control panel. The tester would have to disable and enable them an awful lot before it would become worthwhile programming some shortcuts.

Alternatively instead of disabling them at that level just program the game to have a couple of booleans that you adjust in the appropriate places which control rendering and input.

P.S. Why do you want to test this? I can't think of any sensible situation where this would happen when playing a game.

share|improve this answer
    
Your answer is fuzzy to me in some areas, specifically the "tester" part. –  Andy Harglesis Jan 3 '13 at 21:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.