This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Honeyphos123's profile picture

Buttons in a pocket computer

Started by Honeyphos123, 17 August 2015 - 08:09 PM
Honeyphos123 #1
Posted 17 August 2015 - 10:09 PM
I want a way to add buttons like from the touch point API to be added onto a pocket computer so I can make a simple way to click a button and have the main computer start the timer and music and do some other things. This is not a game in the computer btw
flaghacker #2
Posted 17 August 2015 - 10:42 PM
So, what's your problem?
HPWebcamAble #3
Posted 18 August 2015 - 04:07 AM
In the future, try to make your questions as clear as possible.

But think I know what you are asking:
have the main computer
You want to have the pocket computer act like a remote control, correct?

To have the computers wirelessly communicate, you'd use the Rednet API:
http://computercraft.info/wiki/Rednet_(API)

The buttons can be done with Lyqyd's touchpoint API, as you mentioned:
http://www.computercraft.info/forums2/index.php?/topic/14784-touchpoint-api/
Honeyphos123 #4
Posted 19 August 2015 - 12:06 AM
HPWebcamAble you have it down but isnt the touchpoint API used for monitors?
Exerro #5
Posted 19 August 2015 - 12:32 AM
From the Touchpoint API post:
you can also not specify a side, and the touchpoint instance will use the current terminal and watch for mouse_click events (ComputerCraft 1.6+ only).

So I'd assume you can use it on computers as well as monitors.