Blender Git Commit Log
Git Commits -> Revision bbceedc
April 5, 2007, 12:42 (GMT) |
* Tablet support fixup This commit should hopefully fix some of the problems some people were having with tablet support in sculpt mode, and also the problems I made visible with my previous commit related to number field dragging. Now, all the ghost related stuff is tucked away in ghostwinlay.c and a simple Blender API, similar to the existing get_mbut() for example, is provided to access the tablet data. As with the other mouse related data in Blender, the tablet data is cached upon each mouse move or click, in the Window struct. You can now just use: float get_pressure(void); void get_tilt(float *xtilt, float *ytilt); short get_activedevice(void); to get such data from the tablet. Documentation on the returned data is in ghostwinlay.c in the _Window struct definition. Brecht and Nicholas, I've updated the painting and sculpt code and it works just fine here, you may want to give it a check though to make sure I haven't done anything silly. |
Commit Details:
Full Hash: bbceedced0ecf1426d90faf5f36136f688853ab6
SVN Revision: 10466
Parent Commit: 54f57cc
Lines Changed: +104, -45
7 Modified Paths:
/source/blender/include/BIF_mywindow.h (+7, -1) (Diff)
/source/blender/src/editscreen.c (+15, -2) (Diff)
/source/blender/src/ghostwinlay.c (+55, -11) (Diff)
/source/blender/src/imagepaint.c (+9, -10) (Diff)
/source/blender/src/interface.c (+0, -5) (Diff)
/source/blender/src/sculptmode.c (+14, -15) (Diff)
/source/blender/src/winlay.h (+4, -1) (Diff)
/source/blender/src/editscreen.c (+15, -2) (Diff)
/source/blender/src/ghostwinlay.c (+55, -11) (Diff)
/source/blender/src/imagepaint.c (+9, -10) (Diff)
/source/blender/src/interface.c (+0, -5) (Diff)
/source/blender/src/sculptmode.c (+14, -15) (Diff)
/source/blender/src/winlay.h (+4, -1) (Diff)