Usermode - Build fixes (slight ones)
authorJohn Hodge <[email protected]>
Mon, 17 Oct 2011 14:59:04 +0000 (22:59 +0800)
committerJohn Hodge <[email protected]>
Mon, 17 Oct 2011 14:59:04 +0000 (22:59 +0800)
Usermode/Applications/axwin2_src/Makefile
Usermode/Applications/axwin2_src/WM/input.c
Usermode/Filesystem/Makefile

index 74a9d25..1174798 100644 (file)
@@ -4,7 +4,9 @@ DIRS = WM Shell_src
 
 SUBMAKE = $(MAKE) --no-print-directory
 
-all install:
+all:
+       @$(foreach DIR,$(DIRS), echo --- $(NAME)/$(DIR); $(SUBMAKE) -C $(DIR) $@ ;)
+install:
        @$(foreach DIR,$(DIRS), echo --- $(NAME)/$(DIR); $(SUBMAKE) -C $(DIR) $@ ;)
 
 clean:
index aa7f3b3..08cefc7 100644 (file)
@@ -51,26 +51,34 @@ void Input_HandleSelect(fd_set *set)
        if(FD_ISSET(giMouseFD, set))
        {
                struct sMouseInfo {
-                       uint16_t        NAxies, NButtons;
+                       uint16_t        NAxies;
+                       uint16_t        NButtons;
                        struct sMouseAxis {
-                                int16_t        MinValue, MaxValue;
+                                int16_t        MinValue;
+                                int16_t        MaxValue;
                                 int16_t        CurValue;
                                uint16_t        CursorPos;
                        }       Axies[2];
                        uint8_t Buttons[3];
                }       mouseinfo;
        
-               _SysDebug("Cursor event");
-
-               seek(giMouseFD, 0, SEEK_SET);   
+               seek(giMouseFD, 0, SEEK_SET);
                if( read(giMouseFD, &mouseinfo, sizeof(mouseinfo)) != sizeof(mouseinfo) )
                {
                        // Not a 3 button mouse, oops
                        return ;
                }
-               
+
+//             _SysDebug("sizeof(uint16_t) = %i, sizeof(int16_t) = %i",
+//                     sizeof(uint16_t), sizeof(int16_t));
+//             _SysDebug("NAxies=%i,NButtons=%i", mouseinfo.NAxies, mouseinfo.NButtons);
+//             _SysDebug("offsetof(Axies[0].MinValue) = %i", offsetof(struct sMouseInfo, Axies[0].MinValue));
+//             _SysDebug("[0] = {MinValue=%i,MaxValue=%i,CurValue=%i}",
+//                     mouseinfo.Axies[0].MinValue, mouseinfo.Axies[0].MaxValue,
+//                     mouseinfo.Axies[0].CurValue
+//                     );
                // Handle movement
 //             Video_SetCursorPos( mouseinfo.Axies[0], mouseinfo.Axies[1] );
-               _SysDebug("Cursor to %i,%i\n", mouseinfo.Axies[0].CursorPos, mouseinfo.Axies[1].CursorPos);
+               _SysDebug("Cursor to %i,%i", mouseinfo.Axies[0].CursorPos, mouseinfo.Axies[1].CursorPos);
        }
 }
index 8723c6a..7eb0694 100644 (file)
@@ -12,12 +12,15 @@ FILES = Conf/BootConf.cfg
 #FILES := $(addprefix $(DISTROOT)/,$(FILES))
 
 .PHONY: all clean
-.PHONY: $(DIRS) $(FILES)
+.PHONY: $(DIRS) $(FILES) DISTROOT
 
-install:       $(DIRS) $(FILES)
+install: DISTROOT $(DIRS) $(FILES)
 
 clean:
 
+DISTROOT:
+       $(xMKDIR) $(DISTROOT); true
+
 $(DIRS):
        $(xMKDIR) $(DISTROOT)/$@; true
 

UCC git Repository :: git.ucc.asn.au