8 new, 2 modified patches.
[webos-internals:djcin7s-modifications.git] / mojo / mojo-haptic-feedback-manager.patch
1 Name: Haptic Feedback Manager
2 Version: 1.3.5-1
3 Author: Fritos1406
4 Description: Enables Vibrate to any Tap on an object/icon..etc.
5
6 --- .orig/usr/palm/frameworks/mojo/builtins/palmInitFramework200_72.js
7 +++ /usr/palm/frameworks/mojo/builtins/palmInitFramework200_72.js
8 @@ -10795,6 +10795,10 @@
9  
10  
11  sendTap:function(triggeringEvent){
12 +               this.serviceRequest = new Mojo.Service.Request                                  
13 +               ("palm://com.palm.vibrate", {
14 +               method: 'vibrate', parameters: { 'period': 0,'duration': 75 }
15 +               });
16  var tapEvent,focusedElement;
17  focusedElement=Mojo.View.getFocusedElement(this.downTarget.ownerDocument.body);
18  if(focusedElement){
19 @@ -11777,6 +11781,10 @@
20  
21  
22  tapEvent:function(event){
23 +               this.serviceRequest = new Mojo.Service.Request                                  
24 +               ("palm://com.palm.vibrate", {
25 +               method: 'vibrate', parameters: { 'period': 0,'duration': 75 }
26 +               });
27  this.dragEnd(event);
28  },
29