Posted 04 April 2014 - 12:09 AM
heres an easy API for a touch screen it will auto place the buttons around the screen in the order you set them, including setting up multiple pages, it will auto detect and wrap the monitor to any side and open the wireless modem for sending rednet if needed.
HOW TO USE
===========
run pastebin get UYePv49v butapi
within your program
load api with
os.loadAPI("butapi")
define how many buttons you would like to have going across and high
butapi.howManyButtons(w,h) I.E butapi.howManyButtons(3,4)
setup your buttons with "buttonname" in quotes, the function you want it to run without the "()", boolen true or false for if you want the button to be on by default
butapi.setTable("button name",function,boolen) I.E. butapi.setTable("Test button",butapi.none,false)
then at the end of your program tell it to run
butapi.watchForClick()
please let me know what you think.
HOW TO USE
===========
run pastebin get UYePv49v butapi
within your program
load api with
os.loadAPI("butapi")
define how many buttons you would like to have going across and high
butapi.howManyButtons(w,h) I.E butapi.howManyButtons(3,4)
setup your buttons with "buttonname" in quotes, the function you want it to run without the "()", boolen true or false for if you want the button to be on by default
butapi.setTable("button name",function,boolen) I.E. butapi.setTable("Test button",butapi.none,false)
then at the end of your program tell it to run
butapi.watchForClick()
please let me know what you think.
Edited on 05 April 2014 - 01:48 AM