main/buttons.h

changeset 1
ad2c8b13eb88
parent 0
b74b0e4902c3
child 19
49e2960d4642
--- a/main/buttons.h	Sat Oct 20 13:23:15 2018 +0200
+++ b/main/buttons.h	Sat Oct 20 17:09:48 2018 +0200
@@ -6,7 +6,7 @@
 #ifndef _BUTTONS_H
 #define _BUTTONS_H
 
-#define MAXBUTTONS              40
+#define MAXBUTTONS              40	///< Maximum buttons on a screen
 
 
 /**
@@ -40,9 +40,9 @@
  * @param y The Y start position
  * @param w The width of the button in pixels
  * @param h The height of the button in pixels.
- * @param text The text to display on the button.
- *             If the text is empty, no key will be shown.
- *             Use this for other areas that must act as a key.
+ * @param txt The text to display on the button.
+ *            If the txt is empty, no key will be shown.
+ *            Use this for other areas that must act as a key.
  * @param order The order number in the list.
  */
 void Buttons_Add(int x, int y, int w, int h, char *txt, int order);
@@ -74,6 +74,12 @@
 int KeyBoardAll(void);
 
 /**
+ * @brief Scan keyboard, just digits.
+ * @return The ASCII code of the key, or -1 if no key is pressed.
+ */
+int KeyBoardDigits(void);
+
+/**
  * @brief Show data text field.
  * @param x The X position on the screen
  * @param y The Y position on the screen
@@ -213,7 +219,7 @@
 void EditBool(char *label, bool *val);
 
 /**
- * @bried Edit SSR2 value.
+ * @brief Edit SSR2 value.
  * @param val The SSR2 value.
  */
 void EditSSR2(int *val);
@@ -221,8 +227,8 @@
 /**
  * @brief Confirm or not choice. Uses the whole screen.
  * @param top The top screen message.
- * #param yes The text for the ack button.
- * @param no The text for the nack button.
+ * @param ack The text for the ack button.
+ * @param nak The text for the nack button.
  * @return true when ack, or false.
  */
 int Confirm(char *top, char *ack, char *nak);

mercurial