2 Copyright 2003-2014, The AROS Development Team. All rights reserved.
6 // #define MUIMASTER_YES_INLINE_STDARG
8 #include <proto/alib.h>
10 #include <proto/intuition.h>
11 #include <proto/muimaster.h>
12 #include <proto/utility.h>
14 #include <libraries/mui.h>
15 #include <prefs/input.h>
17 #include <zune/systemprefswindow.h>
24 #include <aros/debug.h>
26 #define VERSION "$VER: Input 0.6 ("ADATE") AROS Dev Team"
28 /*********************************************************************************************/
30 int main(int argc
, char **argv
)
32 Object
*application
, *window
;
36 if (ReadArguments(argc
, argv
))
38 if (ARG(USE
) || ARG(SAVE
))
40 Prefs_HandleArgs((STRPTR
)ARG(FROM
), ARG(USE
), ARG(SAVE
));
46 NewList(&keymap_list
);
48 mempool
= CreatePool(MEMF_PUBLIC
| MEMF_CLEAR
, 2048, 2048);
51 Prefs_ScanDirectory("DEVS:Keymaps/#?_~(#?.info)", &keymap_list
, sizeof(struct KeymapEntry
));
53 application
= ApplicationObject
,
54 MUIA_Application_Title
, __(MSG_NAME
),
55 MUIA_Application_Version
, (IPTR
) VERSION
,
56 MUIA_Application_Description
, __(MSG_DESCRIPTION
),
57 MUIA_Application_Base
, (IPTR
) "INPUTPREF",
58 SubWindow
, (IPTR
) (window
= SystemPrefsWindowObject
,
59 MUIA_Window_ID
, MAKE_ID('I','W','I','N'),
60 WindowContents
, (IPTR
) IPEditorObject
,
65 if (application
!= NULL
)
67 SET(window
, MUIA_Window_Open
, TRUE
);
68 DoMethod(application
, MUIM_Application_Execute
);
69 SET(window
, MUIA_Window_Open
, FALSE
);
71 MUI_DisposeObject(application
);
74 DeletePool((APTR
)mempool
);
80 Locale_Deinitialize();