Posted 19 November 2012 - 03:11 PM
Basically, when you have a controller out and press a certain button, it will broadcast something along the lines of
button = a, – if the "a" key is pressed
button = upArrow, – if the "upArrow" key is pressed
Etc.
this can be used for games running on the monitor. Do if a game were running on the monitor and I pressed a key, it would do something. This would be great for the people making gaming consoles. If you wanted to play a game via the monitor from the computer, the computer screen would block the view of the monitor. The controller would not. A example:
while true do
button = rednet.receive()
if button = 1 then
mon.write("You pressed the 1 key!")
break
end
elseif button = 2 then
mon.write("You pressed the 2 key!")
break
end
end
And so on.
It can detect ANY key (a key like "a" pressed uppercase will be sent as "A" instead of "a")
Let me know what you guys think :(/>/>
button = a, – if the "a" key is pressed
button = upArrow, – if the "upArrow" key is pressed
Etc.
this can be used for games running on the monitor. Do if a game were running on the monitor and I pressed a key, it would do something. This would be great for the people making gaming consoles. If you wanted to play a game via the monitor from the computer, the computer screen would block the view of the monitor. The controller would not. A example:
while true do
button = rednet.receive()
if button = 1 then
mon.write("You pressed the 1 key!")
break
end
elseif button = 2 then
mon.write("You pressed the 2 key!")
break
end
end
And so on.
It can detect ANY key (a key like "a" pressed uppercase will be sent as "A" instead of "a")
Let me know what you guys think :(/>/>