diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2007-05-29 08:34:09 +0400 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2007-05-29 08:34:09 +0400 |
commit | 16340dfe1235391bb675a633a099c17af3a731c7 (patch) | |
tree | d8f2b76f6a9539519b191bb896ce6941f6dbe444 /source/blender/src/editscreen.c | |
parent | 9fec189e7a5793676675f10eb9484b0bbabc5527 (diff) |
adding the initial patch updated to 2.44 in ndof branch
notes :
it compiles but is non functional
lacks the platform specific changes in ghost ( i cant test windows)
lacks the code for plug-in.
the platform specific code will be added when we sync with Ettore work
the plug-in itself cannot be added here
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index c0fee24ba8a..6069ca16312 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -2163,6 +2163,12 @@ short get_activedevice(void) return window_get_activedevice(mainwin); } +short getndof(short *sbval) +{ + winlay_process_events(0); + return window_get_ndof(mainwin, sbval); +} + void add_to_mainqueue(Window *win, void *user_data, short evt, short val, char ascii) { @@ -2227,6 +2233,7 @@ static bScreen *addscreen(char *name) /* use setprefsize() if you want somethin } window_set_handler(mainwin, add_to_mainqueue, NULL); + window_open_ndof(mainwin); /* needs to occur once the mainwin handler is set */ init_mainwin(); mywinset(1); |