fixed analog input and added support for 3rd button.
remove profiler preprocessor conditions, always compiled now.