mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	add support for S Pen actions (#4029)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							122b2b1a8e
						
					
				
				
					commit
					c9b1a425a7
				
			| @@ -401,4 +401,6 @@ | ||||
|     <string name="label_more">Více</string> | ||||
|     <string name="action_menu">Menu</string> | ||||
|     <string name="label_sources">Zdroje</string> | ||||
|     <string name="spen_previous_page">Předchozí stránka</string> | ||||
|     <string name="spen_next_page">Následující stránka</string> | ||||
| </resources> | ||||
| @@ -719,4 +719,8 @@ | ||||
|     <string name="tapping_inverted_vertical">Vertical</string> | ||||
|     <string name="tapping_inverted_both">Both</string> | ||||
|  | ||||
|     <!-- S Pen actions --> | ||||
|     <string name="spen_previous_page">Previous page</string> | ||||
|     <string name="spen_next_page">Next page</string> | ||||
|  | ||||
| </resources> | ||||
|   | ||||
							
								
								
									
										60
									
								
								app/src/main/res/xml/s_pen_actions.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								app/src/main/res/xml/s_pen_actions.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,60 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <remote-actions | ||||
|     actionset_label="@string/app_name" | ||||
|     version="1.2"> | ||||
|     <action | ||||
|         id="tachiyomi_next_page" | ||||
|         label="@string/spen_next_page" | ||||
|         priority="1" | ||||
|         repeatable="true" | ||||
|         repeatable_interval="short" | ||||
|         trigger_key="CTRL_LEFT+DPAD_RIGHT"> | ||||
|         <preference | ||||
|             name="gesture" | ||||
|             value="click" /> | ||||
|     </action> | ||||
|     <action | ||||
|         id="tachiyomi_previous_page" | ||||
|         label="@string/spen_previous_page" | ||||
|         priority="2" | ||||
|         repeatable="true" | ||||
|         repeatable_interval="short" | ||||
|         trigger_key="CTRL_LEFT+DPAD_LEFT"> | ||||
|         <preference | ||||
|             name="gesture" | ||||
|             value="double_click" /> | ||||
|     </action> | ||||
|     <action | ||||
|         id="tachiyomi_back" | ||||
|         label="@string/action_webview_back" | ||||
|         priority="3" | ||||
|         repeatable="true" | ||||
|         repeatable_interval="short" | ||||
|         trigger_key="BACK"> | ||||
|         <preference | ||||
|             name="gesture" | ||||
|             value="circle_ccw" /> | ||||
|     </action> | ||||
|     <action | ||||
|         id="tachiyomi_next_chapter" | ||||
|         label="@string/action_next_chapter" | ||||
|         priority="4" | ||||
|         repeatable="true" | ||||
|         repeatable_interval="short" | ||||
|         trigger_key="N"> | ||||
|         <preference | ||||
|             name="gesture" | ||||
|             value="swipe_right" /> | ||||
|     </action> | ||||
|     <action | ||||
|         id="tachiyomi_previous_chapter" | ||||
|         label="@string/action_previous_chapter" | ||||
|         priority="5" | ||||
|         repeatable="true" | ||||
|         repeatable_interval="short" | ||||
|         trigger_key="P"> | ||||
|         <preference | ||||
|             name="gesture" | ||||
|             value="swipe_left" /> | ||||
|     </action> | ||||
| </remote-actions> | ||||
		Reference in New Issue
	
	Block a user