summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2007-03-12 00:59:51 +0000
committerIan C <ianc@noddybox.co.uk>2007-03-12 00:59:51 +0000
commit7e2703a49de38100f9ee82042a744517fc7eb171 (patch)
treee76beb7f038e9ef51a30b5d10f5e4be7ffd73c46 /include
parenteeef0966f0448d71e79ad43d53769afebd47b459 (diff)
Altered some interfaces for the monitor.
Diffstat (limited to 'include')
-rw-r--r--include/framebuffer.h5
-rw-r--r--include/gui.h2
-rw-r--r--include/keyboard.h13
3 files changed, 15 insertions, 5 deletions
diff --git a/include/framebuffer.h b/include/framebuffer.h
index 3055e51..afe5972 100644
--- a/include/framebuffer.h
+++ b/include/framebuffer.h
@@ -45,6 +45,11 @@ typedef enum
*/
void FB_Init(uint16 *vram, uint16 *palette);
+/* Gives access to the parameters of the frame buffer.
+*/
+uint16 *FB_VRAM(void);
+uint16 *FB_PALETTE(void);
+
/* Load the internal framebuffer font as a set of ASCII tiles (starting with
space) at tiles. The tiles will use colour COL_WHITE.
*/
diff --git a/include/gui.h b/include/gui.h
index 388c200..3795481 100644
--- a/include/gui.h
+++ b/include/gui.h
@@ -25,6 +25,6 @@
int GUI_Menu(const char *opts[]);
void GUI_Alert(int fatal, const char *text);
void GUI_Config(void);
-bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter);
+int GUI_FileSelect(char pwd[], char selected_file[], const char *filter);
#endif /* DS81_GUI_H */
diff --git a/include/keyboard.h b/include/keyboard.h
index 2afb5df..0827b76 100644
--- a/include/keyboard.h
+++ b/include/keyboard.h
@@ -100,9 +100,15 @@ typedef struct
} SoftKeyEvent;
-/* Display the soft keyboard
+/* Display the soft keyboard.
*/
-void SK_DisplayKeyboard(uint16 *vram);
+void SK_DisplayKeyboard(void);
+
+/* If dim is TRUE, then the keyboard is displayed with reduced brightness along
+ with the selection box. This routine simply adjusts the palette, and
+ assumes that the keyboard is already on display.
+*/
+void SK_SetDisplayBrightness(int dim);
/* Returns TRUE while there are still key events for this cycle
*/
@@ -113,8 +119,7 @@ int SK_GetEvent(SoftKeyEvent *ev);
*/
int SK_GetBareEvent(SoftKeyEvent *ev);
-/* Sets a key to be 'sticky' (it will be released automatically on the next
- non-sticky press).
+/* Sets a key to be 'sticky'.
*/
void SK_SetSticky(SoftKey key, int is_sticky);