Skip to content

Commit

Permalink
Various additions (widget properties loading/editing, multitouch, vie…
Browse files Browse the repository at this point in the history
…wport).

- look for patches only inside of "/sdcard/PdDroidParty" folder (speeds up boot)

- draw widgets in original pd coordinates (removed "patchwidth"/"screenwidth" and "height"s references from individual widget source)

- colors for slider, toggle, bang, canvas

- label pos and size for slider, toggle, bang, canvas

- thicker lines for slider, bang, toggle

- antialias main canvas

- set audio frequency to 44100

- runtime edit : parsing "pos", "color", "label" (...) messages ("label_font" message still crashes at the moment)

- "steady on click" behavior for slider ("jump on click" not rewritten yet ; maybe useless on tablets ?)

- improved "bang" message parsing (do not "bang" when receiving edit messages)

- "hold" parameter functionality for bangs (stay visually "banged" for a some millis)

- minimum android api modified from 5 to 8 in AndroidManifest.xml (just to be able to use some Pointer identifier functions...)

- multitouch improved by rewriting motion event management ;
	widget use now 3 different functions : touchdown(pointerid,x,y), touchup(pointerid,x,y) and touchmove(pointerid,x,y).
	This makes writing of these functions much simpler and efficient than parsing the same event for each widget.
        Also implemented pointer stealing by deepest widget, like in pd.

- viewport function : if a "Canvas" (Canvasrect in pddroidparty sources) has "ViewPort" as receive name, "pos" and "size_vis" commands sent to it will be used by the main patchviewer to rescale patch view. This makes possible to present multiple panels to user, all written into the same patch.

- "pure-widgets-demo" patch added into "droidparty-demos"
  • Loading branch information
Ant1r committed Mar 12, 2013
1 parent 3370bd4 commit da6a5bf
Show file tree
Hide file tree
Showing 19 changed files with 1,018 additions and 374 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Expand Up @@ -23,7 +23,7 @@
<activity android:name=".LoadDialog" android:theme="@android:style/Theme.Dialog" android:configChanges="orientation" android:label="Load"></activity>
<service android:name="org.puredata.android.service.PdService" />
</application>
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="7"/>
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down

0 comments on commit da6a5bf

Please sign in to comment.